mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Curl_http() could crash on connection re-use
This commit is contained in:
parent
dd893fd8a4
commit
90ac37a683
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user