r19408: I think tm_mon is ending up as -1 on some platforms
authorAndrew Tridgell <tridge@samba.org>
Thu, 19 Oct 2006 03:04:00 +0000 (03:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:27 +0000 (14:21 -0500)
(This used to be commit d01bdf1f2dcdf77043a5ad162ee336d3c6f2e944)

source4/lib/replace/timegm.c

index 608882d0ce67a168daef84d92225b7c52f9ad41d..395c684e11700431ed7a2eafec5a2dd307fb28c3 100644 (file)
@@ -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 ||