svn rev #23084: trunk/src/kdc/

lhoward@MIT.EDU lhoward at MIT.EDU
Thu Oct 29 10:16:55 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23084
Commit By: lhoward
Log Message:
remove times underflow/overflow checks, they break tests


Changed Files:
U   trunk/src/kdc/kdc_util.c
Modified: trunk/src/kdc/kdc_util.c
===================================================================
--- trunk/src/kdc/kdc_util.c	2009-10-29 09:17:51 UTC (rev 23083)
+++ trunk/src/kdc/kdc_util.c	2009-10-29 14:16:55 UTC (rev 23084)
@@ -2639,8 +2639,7 @@
 
     until = min(till, endtime);
 
-    /* check for underflow */
-    life = (until < starttime) ? 0 : until - starttime;
+    life = until - starttime;
 
     if (client->max_life != 0)
 	life = min(life, client->max_life);
@@ -2649,10 +2648,6 @@
     if (max_life_for_realm != 0)
 	life = min(life, max_life_for_realm);
 
-    /* check for overflow */
-    if (starttime > kdc_infinity - life)
-	*out_endtime = kdc_infinity;
-    else
-	*out_endtime = starttime + life;
+    *out_endtime = starttime + life;
 }
 




More information about the cvs-krb5 mailing list