mirror of
https://github.com/curl/curl.git
synced 2026-04-15 12:21:45 +03:00
Zero out auth structs before transfer
This commit is contained in:
parent
674da8ae07
commit
ce8311c7e4
1 changed files with 4 additions and 0 deletions
|
|
@ -1433,6 +1433,10 @@ CURLcode Curl_pretransfer(struct SessionHandle *data)
|
|||
|
||||
data->state.ssl_connect_retry = FALSE;
|
||||
|
||||
/* zero out auth state */
|
||||
memset(&data->state.authhost, 0, sizeof(struct auth));
|
||||
memset(&data->state.authproxy, 0, sizeof(struct auth));
|
||||
|
||||
data->state.authproblem = FALSE;
|
||||
data->state.authhost.want = data->set.httpauth;
|
||||
data->state.authproxy.want = data->set.proxyauth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue