aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-01-17 11:59:44 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-01-17 14:58:36 +0000
commit81b98dafa19aa88166a7190769afbd359156df00 (patch)
tree7df29b871a3c7ebaee4eb0248082473754dde0ce /lib
parent47438daa60ccb1b6b07acd30e4fd9d0d724bbdc7 (diff)
http_negotiate: Added empty decoded challenge message info text
Diffstat (limited to 'lib')
-rw-r--r--lib/http_negotiate.c5
-rw-r--r--lib/http_negotiate_sspi.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index 6e882a337..6a4b8660f 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 7afd60957..e6ab0b78d 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 */