From ec5fde24de5ddd1910730f0cbac5e77820b26eb9 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 5 May 2014 14:49:30 +0200 Subject: http: avoid auth failure on a duplicated header ... 'WWW-Authenticate: Negotiate' received from server Reported by: David Woodhouse Bug: https://bugzilla.redhat.com/1093348 --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/http.c b/lib/http.c index fb4334966..937d241a2 100644 --- a/lib/http.c +++ b/lib/http.c @@ -780,7 +780,7 @@ CURLcode Curl_http_input_auth(struct connectdata *conn, bool proxy, infof(data, "Authentication problem. Ignoring this.\n"); data->state.authproblem = TRUE; } - else { + else if(data->state.negotiate.state == GSS_AUTHNONE) { neg = Curl_input_negotiate(conn, proxy, auth); if(neg == 0) { DEBUGASSERT(!data->req.newurl); -- cgit v1.2.3