From: Isaac Boukris Date: Wed, 16 Sep 2015 00:52:36 +0000 (+0300) Subject: NTLM: Reset auth-done when using a fresh connection X-Git-Tag: curl-7_45_0~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f65e07ca5930a27a54fe96e99e838f6c85c5356b;p=curl NTLM: Reset auth-done when using a fresh connection With NTLM a new connection will always require authentication. Fixes #435 --- diff --git a/lib/url.c b/lib/url.c index dccd7109e..f056b16f5 100644 --- a/lib/url.c +++ b/lib/url.c @@ -5839,12 +5839,14 @@ static CURLcode create_conn(struct SessionHandle *data, data->state.authhost.done) { infof(data, "NTLM picked AND auth done set, clear picked!\n"); data->state.authhost.picked = CURLAUTH_NONE; + data->state.authhost.done = FALSE; } if((data->state.authproxy.picked & (CURLAUTH_NTLM | CURLAUTH_NTLM_WB)) && data->state.authproxy.done) { infof(data, "NTLM-proxy picked AND auth done set, clear picked!\n"); data->state.authproxy.picked = CURLAUTH_NONE; + data->state.authproxy.done = FALSE; } #endif }