From ccff9eabc44dbac52aac8a6cfa96e220e0ec3a56 Mon Sep 17 00:00:00 2001 From: "relyea%netscape.com" Date: Tue, 9 Jul 2002 04:40:35 +0000 Subject: [PATCH] treat lastTime of 0 as never having checked (not within the interval). git-svn-id: svn://10.0.0.236/trunk@124830 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/dev/devslot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/security/nss/lib/dev/devslot.c b/mozilla/security/nss/lib/dev/devslot.c index 29a7e5ef586..d1ced039782 100644 --- a/mozilla/security/nss/lib/dev/devslot.c +++ b/mozilla/security/nss/lib/dev/devslot.c @@ -32,7 +32,7 @@ */ #ifdef DEBUG -static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.10 $ $Date: 2002-06-24 22:36:53 $ $Name: not supported by cvs2svn $"; +static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.11 $ $Date: 2002-07-09 04:40:35 $ $Name: not supported by cvs2svn $"; #endif /* DEBUG */ #ifndef NSSCKEPV_H @@ -237,7 +237,8 @@ within_token_delay_period(NSSSlot *slot) } time = PR_IntervalNow(); lastTime = slot->lastTokenPing; - if ((time > lastTime) && ((time - lastTime) < s_token_delay_time)) { + if ((lastTime) && + (time > lastTime) && ((time - lastTime) < s_token_delay_time)) { return PR_TRUE; } slot->lastTokenPing = time;