From: Michael Kaufmann Date: Sat, 11 Mar 2017 17:22:30 +0000 (+0100) Subject: curl_easy_reset: Also reset the authentication state X-Git-Tag: curl-7_54_0~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0afbcfd800c45e766e225e4ce273b128ee6a8c25;p=curl curl_easy_reset: Also reset the authentication state Follow-up to 5278462 See https://github.com/curl/curl/issues/1095 --- 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)); } /*