From d06a74771ac3f665f30676e8822785c193139f86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Feb 2026 23:49:03 +0100 Subject: [PATCH] fixup simplify the check --- lib/url.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/url.c b/lib/url.c index 4d2adbdec4..1c621e2e80 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1196,14 +1196,8 @@ static bool url_match_auth_nego(struct connectdata *conn, so that we can reuse Negotiate connections if possible. */ if(m->want_nego_http) { if(Curl_timestrcmp(m->needle->user, conn->user) || - Curl_timestrcmp(m->needle->passwd, conn->passwd)) { - - /* we prefer a credential match, but this is at least a connection that - can be reused and "upgraded" to Negotiate */ - if(conn->http_negotiate_state == GSS_AUTHNONE) - m->found = conn; + Curl_timestrcmp(m->needle->passwd, conn->passwd)) return FALSE; - } } else if(conn->http_negotiate_state != GSS_AUTHNONE) { /* Connection is using Negotiate auth but we do not want Negotiate */