From: Theodore Tso Date: Sat, 10 Jun 1995 03:47:44 +0000 (+0000) Subject: Change assertion to check to make sure that the day of the month is >= X-Git-Tag: krb5-1.0-beta6~1774 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=18ba04b59782ccd857c6f2df12d773d49d4d0dd8;p=krb5.git Change assertion to check to make sure that the day of the month is >= 1, not 0. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6029 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 8d0d042ee..64c9b8017 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 9 22:08:33 1995 Theodore Y. Ts'o + + * gmt_mktime.c (gmt_mktime): Change assertion to check to make + sure that the day of the month is >= 1, not 0. + Fri Jun 9 19:34:29 1995 * configure.in: Remove standardized set of autoconf macros, which diff --git a/src/lib/krb5/os/gmt_mktime.c b/src/lib/krb5/os/gmt_mktime.c index 1fac90a93..a7051ff06 100644 --- a/src/lib/krb5/os/gmt_mktime.c +++ b/src/lib/krb5/os/gmt_mktime.c @@ -46,7 +46,7 @@ time_t gmt_mktime(t) assert_time(t->tm_year<=138); assert_time(t->tm_mon>=0); assert_time(t->tm_mon<=11); - assert_time(t->tm_mday>=0); + assert_time(t->tm_mday>=1); assert_time(t->tm_mday<=31); assert_time(t->tm_hour>=0); assert_time(t->tm_hour<=23);