mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
curl_easy_reset: Also reset the authentication state
Follow-up to 5278462
See https://github.com/curl/curl/issues/1095
This commit is contained in:
parent
5278462c32
commit
0afbcfd800
@ -981,6 +981,10 @@ void curl_easy_reset(struct Curl_easy *data)
|
||||
|
||||
data->progress.flags |= PGRS_HIDE;
|
||||
data->state.current_speed = -1; /* init to negative == impossible */
|
||||
|
||||
/* zero out authentication data: */
|
||||
memset(&data->state.authhost, 0, sizeof(struct auth));
|
||||
memset(&data->state.authproxy, 0, sizeof(struct auth));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user