aboutsummaryrefslogtreecommitdiff
path: root/lib/http_digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r--lib/http_digest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 7f62c26b4..51bcb8450 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -41,7 +41,7 @@
#include <curl/mprintf.h>
/* The last #include file should be: */
-#ifdef MALLOCDEBUG
+#ifdef CURLDEBUG
#include "memdebug.h"
#endif
@@ -106,6 +106,9 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
/* allow the list to be comma-separated */
header++;
}
+
+ if(!data->state.digest.nonce)
+ return CURLDIGEST_BAD;
}
else
/* else not a digest, get out */