File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1085,11 +1085,17 @@ static bool url_match_auth_ntlm(struct connectdata *conn,
10851085 if (m -> want_ntlm_http ) {
10861086 if (Curl_timestrcmp (m -> needle -> user , conn -> user ) ||
10871087 Curl_timestrcmp (m -> needle -> passwd , conn -> passwd )) {
1088-
10891088 /* we prefer a credential match, but this is at least a connection
1090- that can be reused and "upgraded" to NTLM */
1091- if (conn -> http_ntlm_state == NTLMSTATE_NONE )
1089+ that can be reused and "upgraded" to NTLM if it does
1090+ not have any auth ongoing. */
1091+ #ifdef USE_SPNEGO
1092+ if ((conn -> http_ntlm_state == NTLMSTATE_NONE )
1093+ && (conn -> http_negotiate_state == GSS_AUTHNONE )) {
1094+ #else
1095+ if (conn -> http_ntlm_state == NTLMSTATE_NONE ) {
1096+ #endif
10921097 m -> found = conn ;
1098+ }
10931099 return FALSE;
10941100 }
10951101 }
You can’t perform that action at this time.
0 commit comments