1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Zero out auth structs before transfer

This commit is contained in:
Joe Mason 2012-07-27 17:25:45 -04:00
parent 674da8ae07
commit ce8311c7e4

View File

@ -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;