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
1 changed files with 4 additions and 0 deletions

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;