mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:57:18 +03:00
Curl_http() could crash on connection re-use
This commit is contained in:
parent
dd893fd8a4
commit
90ac37a683
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue