Skip to content

Commit

Permalink
http_negotiate: Added empty decoded challenge message info text
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed Jan 17, 2015
1 parent 47438da commit 81b98da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/http_negotiate.c
Expand Up @@ -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;

Expand Down
6 changes: 5 additions & 1 deletion lib/http_negotiate_sspi.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 81b98da

Please sign in to comment.