diff options
-rw-r--r-- | lib/curl_sasl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index d07387d47..c3f2d43f0 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -283,6 +283,9 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data, if(result) return result; + if(!chlg) + return CURLE_LOGIN_DENIED; + /* Retrieve nonce string from the challenge */ if(!sasl_digest_get_key_value(chlg, "nonce=\"", nonce, sizeof(nonce), '\"')) { |