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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90ac37a683820850e50d189cae0ee1b99c29d11b;p=curl Curl_http() could crash on connection re-use --- diff --git a/lib/http.c b/lib/http.c index a77cc0e45..589501450 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) {