diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-04 15:25:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-04 15:25:54 +0000 |
commit | 90ac37a683820850e50d189cae0ee1b99c29d11b (patch) | |
tree | dc133c33eaeb8fbbe0b263e8f1767f57c570db28 | |
parent | dd893fd8a44cffc225b85ba4909d517a1c3b085e (diff) |
Curl_http() could crash on connection re-use
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |