From: Harry Sintonen Date: Sun, 2 May 2021 21:06:41 +0000 (+0300) Subject: Curl_http_header: check for colon when matching Persistent-Auth X-Git-Tag: curl-7_77_0~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a60294cf4319e8dd0cbb9b3bba178451d4de37d2;p=thirdparty%2Fcurl.git Curl_http_header: check for colon when matching Persistent-Auth Closes #6993 --- diff --git a/lib/http.c b/lib/http.c index 1f5ca37b2d..b42d37efa5 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3581,7 +3581,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn, return result; } #ifdef USE_SPNEGO - else if(checkprefix("Persistent-Auth", headp)) { + else if(checkprefix("Persistent-Auth:", headp)) { struct negotiatedata *negdata = &conn->negotiate; struct auth *authp = &data->state.authhost; if(authp->picked == CURLAUTH_NEGOTIATE) {