diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-03-11 18:22:30 +0100 |
---|---|---|
committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-03-11 18:26:04 +0100 |
commit | 0afbcfd800c45e766e225e4ce273b128ee6a8c25 (patch) | |
tree | 79e616781f61b77c57ec319a71c04b66e79d211a | |
parent | 5278462c32a70cd972a8cc824a38f164151d6c6d (diff) |
curl_easy_reset: Also reset the authentication state
Follow-up to 5278462
See https://github.com/curl/curl/issues/1095
-rw-r--r-- | lib/easy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index bed94a444..ef023aa92 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -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)); } /* |