From 90ac37a683820850e50d189cae0ee1b99c29d11b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 4 Mar 2001 15:25:54 +0000 Subject: Curl_http() could crash on connection re-use --- lib/http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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) { -- cgit v1.2.3