mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:33:36 +03:00
Make sure not to dereference the wrong UrlState proto union member when
switching from one protocol to another in a single request (e.g. redirecting from HTTP to FTP as in test 1055) by resetting state.expect100header before every request.
This commit is contained in:
parent
3800be3898
commit
515893595d
2 changed files with 8 additions and 1 deletions
|
|
@ -4682,6 +4682,7 @@ static CURLcode do_init(struct connectdata *conn)
|
|||
|
||||
conn->bits.done = FALSE; /* Curl_done() is not called yet */
|
||||
conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to use */
|
||||
data->state.expect100header = FALSE;
|
||||
|
||||
/* NB: the content encoding software depends on this initialization */
|
||||
Curl_easy_initHandleData(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue