diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-10-19 03:04:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:27 -0500 |
commit | 0ec080d505aa5238ca3733454905f5ce9f65d6dc (patch) | |
tree | dfc4842f961b948fef46acff26d33e13ed8403d5 /source4 | |
parent | 74119919d97ce600024a08e82f2b168472d80846 (diff) | |
download | samba-0ec080d505aa5238ca3733454905f5ce9f65d6dc.tar.gz samba-0ec080d505aa5238ca3733454905f5ce9f65d6dc.tar.bz2 samba-0ec080d505aa5238ca3733454905f5ce9f65d6dc.zip |
r19408: I think tm_mon is ending up as -1 on some platforms
(This used to be commit d01bdf1f2dcdf77043a5ad162ee336d3c6f2e944)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/replace/timegm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 || |