Commit 0049c09f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

credentials.
parent a2a63c27
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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 */