Skip to content

Commit ec5fde2

Browse files
committed
http: avoid auth failure on a duplicated header
... 'WWW-Authenticate: Negotiate' received from server Reported by: David Woodhouse Bug: https://bugzilla.redhat.com/1093348
1 parent 1343756 commit ec5fde2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

RELEASE-NOTES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ This release includes the following bugfixes:
6464
o curl_multi_cleanup: ignore SIGPIPE better [13]
6565
o schannel: don't use the connect-timeout during send [14]
6666
o mprintf: allow %.s with data not being zero terminated
67+
o http: auth failure on duplicated 'WWW-Authenticate: Negotiate' header [15]
6768

6869
This release includes the following known bugs:
6970

@@ -96,3 +97,4 @@ References to bug reports and discussions on issues:
9697
[12] = http://curl.haxx.se/mail/lib-2014-04/0161.html
9798
[13] = http://thread.gmane.org/gmane.comp.version-control.git/238242
9899
[14] = http://curl.haxx.se/bug/view.cgi?id=1352
100+
[15] = https://bugzilla.redhat.com/1093348

lib/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ CURLcode Curl_http_input_auth(struct connectdata *conn, bool proxy,
780780
infof(data, "Authentication problem. Ignoring this.\n");
781781
data->state.authproblem = TRUE;
782782
}
783-
else {
783+
else if(data->state.negotiate.state == GSS_AUTHNONE) {
784784
neg = Curl_input_negotiate(conn, proxy, auth);
785785
if(neg == 0) {
786786
DEBUGASSERT(!data->req.newurl);

0 commit comments

Comments
 (0)