commit a2103adbc4fec800d9b876ca293c94bd4b1dd9ed
parent 2d4289dca73ea1f56c18ddec069a1ab362e55b35
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 5 Feb 2020 19:26:54 +0100
add clarifying assert that digest must not be NULL
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -1237,6 +1237,7 @@ MHD_digest_auth_check2 (struct MHD_Connection *connection,
{
SETUP_DA (algo, da);
+ mhd_assert (NULL != password);
return digest_auth_check_all (connection,
&da,
realm,
@@ -1275,6 +1276,7 @@ MHD_digest_auth_check_digest2 (struct MHD_Connection *connection,
{
SETUP_DA (algo, da);
+ mhd_assert (NULL != digest);
if (da.digest_size != digest_size)
MHD_PANIC (_ ("digest size missmatch")); /* API violation! */
return digest_auth_check_all (connection,