]> granicus.if.org Git - curl/commitdiff
NTLM: Reset auth-done when using a fresh connection
authorIsaac Boukris <iboukris@gmail.com>
Wed, 16 Sep 2015 00:52:36 +0000 (03:52 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 19 Sep 2015 21:21:05 +0000 (23:21 +0200)
With NTLM a new connection will always require authentication.
Fixes #435

lib/url.c

index dccd7109e60f6668108b9e9375c47457ae468bcd..f056b16f5b0bd18e29c4bcc8584ea5fa945a2840 100644 (file)
--- 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
   }