diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-05 19:26:54 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-05 19:26:54 +0100 |
commit | a2103adbc4fec800d9b876ca293c94bd4b1dd9ed (patch) | |
tree | 313f898f7979ee1f7718a1cacb030921e2fe62eb | |
parent | 2d4289dca73ea1f56c18ddec069a1ab362e55b35 (diff) | |
download | libmicrohttpd-a2103adbc4fec800d9b876ca293c94bd4b1dd9ed.tar.gz libmicrohttpd-a2103adbc4fec800d9b876ca293c94bd4b1dd9ed.zip |
add clarifying assert that digest must not be NULL
-rw-r--r-- | src/microhttpd/digestauth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 5a01cdf7..b6a684a4 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -1237,6 +1237,7 @@ MHD_digest_auth_check2 (struct MHD_Connection *connection, | |||
1237 | { | 1237 | { |
1238 | SETUP_DA (algo, da); | 1238 | SETUP_DA (algo, da); |
1239 | 1239 | ||
1240 | mhd_assert (NULL != password); | ||
1240 | return digest_auth_check_all (connection, | 1241 | return digest_auth_check_all (connection, |
1241 | &da, | 1242 | &da, |
1242 | realm, | 1243 | realm, |
@@ -1275,6 +1276,7 @@ MHD_digest_auth_check_digest2 (struct MHD_Connection *connection, | |||
1275 | { | 1276 | { |
1276 | SETUP_DA (algo, da); | 1277 | SETUP_DA (algo, da); |
1277 | 1278 | ||
1279 | mhd_assert (NULL != digest); | ||
1278 | if (da.digest_size != digest_size) | 1280 | if (da.digest_size != digest_size) |
1279 | MHD_PANIC (_ ("digest size missmatch")); /* API violation! */ | 1281 | MHD_PANIC (_ ("digest size missmatch")); /* API violation! */ |
1280 | return digest_auth_check_all (connection, | 1282 | return digest_auth_check_all (connection, |