From 0ec080d505aa5238ca3733454905f5ce9f65d6dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 19 Oct 2006 03:04:00 +0000 Subject: r19408: I think tm_mon is ending up as -1 on some platforms (This used to be commit d01bdf1f2dcdf77043a5ad162ee336d3c6f2e944) --- source4/lib/replace/timegm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/timegm.c b/source4/lib/replace/timegm.c index 608882d0ce..395c684e11 100644 --- a/source4/lib/replace/timegm.c +++ b/source4/lib/replace/timegm.c @@ -53,6 +53,7 @@ time_t rep_timegm(struct tm *tm) unsigned i; if (tm->tm_mon > 12 || + tm->tm_mon < 0 || tm->tm_mday > 31 || tm->tm_min > 60 || tm->tm_sec > 60 || -- cgit