Curl_http() could crash on connection re-use
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Mar 2001 15:25:54 +0000 (15:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 4 Mar 2001 15:25:54 +0000 (15:25 +0000)
lib/http.c

index a77cc0e..5895014 100644 (file)
@@ -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) {