projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e9a9e
)
if gmtime() returns NULL, this returns -1 to bail out nicely
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 29 Nov 2004 08:10:10 +0000
(08:10 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 29 Nov 2004 08:10:10 +0000
(08:10 +0000)
lib/parsedate.c
patch
|
blob
|
history
diff --git
a/lib/parsedate.c
b/lib/parsedate.c
index
e9e860f
..
e3637ee
100644
(file)
--- a/
lib/parsedate.c
+++ b/
lib/parsedate.c
@@
-381,6
+381,8
@@
static time_t Curl_parsedate(const char *date)
#else
gmt = gmtime(&t); /* use gmtime_r() if available */
#endif
+ if(!gmt)
+ return -1; /* illegal date/time */
t2 = mktime(gmt);