Blame SOURCES/0072-curl-7.29.0-dup-auth-header.patch

b3b501
From d0aa55d27584b37b350721422849b510845a25bf Mon Sep 17 00:00:00 2001
b3b501
From: Kamil Dudka <kdudka@redhat.com>
b3b501
Date: Mon, 5 May 2014 14:49:30 +0200
b3b501
Subject: [PATCH] http: avoid auth failure on a duplicated header
b3b501
b3b501
... 'WWW-Authenticate: Negotiate' received from server
b3b501
b3b501
Reported by: David Woodhouse
b3b501
Bug: https://bugzilla.redhat.com/1093348
b3b501
b3b501
Upstream-commit: ec5fde24de5ddd1910730f0cbac5e77820b26eb9
b3b501
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
b3b501
---
b3b501
 lib/http.c | 2 +-
b3b501
 1 file changed, 1 insertion(+), 1 deletion(-)
b3b501
b3b501
diff --git a/lib/http.c b/lib/http.c
b3b501
index a6be452..46734c4 100644
b3b501
--- a/lib/http.c
b3b501
+++ b/lib/http.c
b3b501
@@ -750,7 +750,7 @@ CURLcode Curl_http_input_auth(struct connectdata *conn,
b3b501
           infof(data, "Authentication problem. Ignoring this.\n");
b3b501
           data->state.authproblem = TRUE;
b3b501
         }
b3b501
-        else {
b3b501
+        else if(data->state.negotiate.state == GSS_AUTHNONE) {
b3b501
           neg = Curl_input_negotiate(conn, (bool)(httpcode == 407), start);
b3b501
           if(neg == 0) {
b3b501
             DEBUGASSERT(!data->req.newurl);
b3b501
-- 
b3b501
2.20.1
b3b501