Commit 81b98daf authored by Steve Holme's avatar Steve Holme
Browse files

http_negotiate: Added empty decoded challenge message info text

parent 47438daa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;

+5 −1
Original line number Diff line number Diff line
@@ -168,9 +168,13 @@ 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 */
  out_buff_desc.ulVersion = SECBUFFER_VERSION;