mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
add clarifying assert that digest must not be NULL
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user