From: Daniel Stenberg Date: Sun, 4 Mar 2001 15:25:54 +0000 (+0000) Subject: Curl_http() could crash on connection re-use X-Git-Tag: curl-7_7_alpha2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90ac37a683820850e50d189cae0ee1b99c29d11b;p=thirdparty%2Fcurl.git Curl_http() could crash on connection re-use --- diff --git a/lib/http.c b/lib/http.c index a77cc0e458..589501450e 100644 --- a/lib/http.c +++ b/lib/http.c @@ -399,6 +399,8 @@ CURLcode Curl_http(struct connectdata *conn) memset(http, 0, sizeof(struct HTTP)); conn->proto.http = http; } + else + http = conn->proto.http; if ( (conn->protocol&(PROT_HTTP|PROT_FTP)) && data->bits.upload) {