1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

http_negotiate: Added empty decoded challenge message info text

This commit is contained in:
Steve Holme 2015-01-17 11:59:44 +00:00
parent 47438daa60
commit 81b98dafa1
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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 */