1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

getinfo.c: reset timecond when clearing session-info variables

Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705783
Reported-by: Ludovico Cavedon <cavedon@debian.org>
This commit is contained in:
Alessandro Ghedini 2013-04-20 12:09:55 +02:00 committed by Daniel Stenberg
parent 868d8e6831
commit c49ed0b6c0

View File

@ -55,6 +55,7 @@ CURLcode Curl_initinfo(struct SessionHandle *data)
info->httpcode = 0; info->httpcode = 0;
info->httpversion=0; info->httpversion=0;
info->filetime=-1; /* -1 is an illegal time and thus means unknown */ info->filetime=-1; /* -1 is an illegal time and thus means unknown */
info->timecond=0;
if(info->contenttype) if(info->contenttype)
free(info->contenttype); free(info->contenttype);