Commit 90ac37a6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_http() could crash on connection re-use

parent dd893fd8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {