From: Steve Holme Date: Sat, 17 Jan 2015 11:59:44 +0000 (+0000) Subject: http_negotiate: Added empty decoded challenge message info text X-Git-Tag: curl-7_41_0~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81b98dafa19aa88166a7190769afbd359156df00;p=thirdparty%2Fcurl.git http_negotiate: Added empty decoded challenge message info text --- diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 6e882a337e..6a4b8660f7 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -101,8 +101,11 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy, if(result) return result; - if(!rawlen) + if(!rawlen) { + infof(data, "Negotiate handshake failure (empty challenge message)\n"); + return CURLE_BAD_CONTENT_ENCODING; + } input_token.length = rawlen; diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c index 7afd609579..e6ab0b78da 100644 --- a/lib/http_negotiate_sspi.c +++ b/lib/http_negotiate_sspi.c @@ -168,8 +168,12 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy, if(result) return result; - if(!input_token_len) + if(!input_token_len) { + infof(conn->data, + "Negotiate handshake failure (empty challenge message)\n"); + return CURLE_BAD_CONTENT_ENCODING; + } } /* Setup the "output" security buffer */