summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/replace/timegm.c1
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 ||