From 90ac37a683820850e50d189cae0ee1b99c29d11b Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sun, 4 Mar 2001 15:25:54 +0000
Subject: [PATCH] Curl_http() could crash on connection re-use

---
 lib/http.c | 2 ++
 1 file changed, 2 insertions(+)

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) {
-- 
GitLab