1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

If NTLM is requested, only re-use connections that have the exact same

credentials.
This commit is contained in:
Daniel Stenberg 2003-07-20 00:02:47 +00:00
parent a2a63c27f4
commit 0049c09fc3

View File

@ -1360,9 +1360,11 @@ ConnectionExists(struct SessionHandle *data,
continue; continue;
} }
} }
if(needle->protocol & PROT_FTP) { if((needle->protocol & PROT_FTP) ||
/* This is FTP, verify that we're using the same name and ((needle->protocol & PROT_HTTP) &&
password as well */ (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) || if(!strequal(needle->user, check->user) ||
!strequal(needle->passwd, check->passwd)) { !strequal(needle->passwd, check->passwd)) {
/* one of them was different */ /* one of them was different */