From 18ba04b59782ccd857c6f2df12d773d49d4d0dd8 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 10 Jun 1995 03:47:44 +0000 Subject: [PATCH] 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 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/gmt_mktime.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.26.2