3 @@ -262,9 +262,9 @@ SecurityComputeAuthorizationTimeout(Secu
4 /* maxSecs is the number of full seconds that can be expressed in
5 * 32 bits worth of milliseconds
7 - CARD32 maxSecs = (CARD32) (~0) / (CARD32) MILLI_PER_SECOND;
8 + CARD32 maxSecs = (CARD32) (MAXINT) / (CARD32) MILLI_PER_SECOND;
10 - if (seconds > maxSecs) { /* only come here if we want to wait more than 49 days */
11 + if (seconds > maxSecs) { /* only come here if we want to wait more than 24 days */
12 pAuth->secondsRemaining = seconds - maxSecs;
13 return maxSecs * MILLI_PER_SECOND;
15 @@ -298,8 +298,6 @@ SecurityAuthorizationExpired(OsTimerPtr
17 SecurityAuthorizationPtr pAuth = (SecurityAuthorizationPtr) pval;
19 - assert(pAuth->timer == timer);
21 if (pAuth->secondsRemaining) {
22 return SecurityComputeAuthorizationTimeout(pAuth,
23 pAuth->secondsRemaining);