diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-07-20 00:02:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-07-20 00:02:47 +0000 |
commit | 0049c09fc3890768bedf0a280889487d9828f9a0 (patch) | |
tree | 528acf1aa1d63eff605a7214a841dae41c3b0152 | |
parent | a2a63c27f466beab656f7e25d178dc33ff6f3ca5 (diff) |
If NTLM is requested, only re-use connections that have the exact same
credentials.
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 */ |