libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit f7d878ed667da7da65a14542561c84b16a615062
parent 65300939cf147f297c32edafa5997a2f6d5d0b86
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed,  4 May 2022 13:40:37 +0300

digestauth: additional assert

Diffstat:
Msrc/microhttpd/digestauth.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -731,6 +731,8 @@ calculate_nonce (uint32_t nonce_time, const unsigned int digest_size = da->digest_size; char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; + mhd_assert (0 == (digest_size % 2)); + mhd_assert (0 != digest_size); VLA_CHECK_LEN_DIGEST (digest_size); da->init (da->ctx); timestamp[0] = (unsigned char) ((nonce_time & 0xff000000) >> 0x18);