From: Daniel Stenberg Date: Sun, 20 Jul 2003 00:02:47 +0000 (+0000) Subject: If NTLM is requested, only re-use connections that have the exact same X-Git-Tag: curl-7_10_6~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0049c09fc3890768bedf0a280889487d9828f9a0;p=curl If NTLM is requested, only re-use connections that have the exact same credentials. --- diff --git a/lib/url.c b/lib/url.c index 5a91b8c03..b44f630c0 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1360,9 +1360,11 @@ ConnectionExists(struct SessionHandle *data, continue; } } - if(needle->protocol & PROT_FTP) { - /* This is FTP, verify that we're using the same name and - password as well */ + if((needle->protocol & PROT_FTP) || + ((needle->protocol & PROT_HTTP) && + (needle->data->state.authwant==CURLAUTH_NTLM))) { + /* This is FTP or HTTP+NTLM, verify that we're using the same name + and password as well */ if(!strequal(needle->user, check->user) || !strequal(needle->passwd, check->passwd)) { /* one of them was different */