aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-04 13:40:37 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-04 15:47:36 +0300
commitf7d878ed667da7da65a14542561c84b16a615062 (patch)
tree46e90eb7155108475dbd72d483d489357bff7a11 /src/microhttpd/digestauth.c
parent65300939cf147f297c32edafa5997a2f6d5d0b86 (diff)
downloadlibmicrohttpd-f7d878ed667da7da65a14542561c84b16a615062.tar.gz
libmicrohttpd-f7d878ed667da7da65a14542561c84b16a615062.zip
digestauth: additional assert
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r--src/microhttpd/digestauth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 0bd1a8c6..c1b5cf2a 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -731,6 +731,8 @@ calculate_nonce (uint32_t nonce_time,
731 const unsigned int digest_size = da->digest_size; 731 const unsigned int digest_size = da->digest_size;
732 char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; 732 char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)];
733 733
734 mhd_assert (0 == (digest_size % 2));
735 mhd_assert (0 != digest_size);
734 VLA_CHECK_LEN_DIGEST (digest_size); 736 VLA_CHECK_LEN_DIGEST (digest_size);
735 da->init (da->ctx); 737 da->init (da->ctx);
736 timestamp[0] = (unsigned char) ((nonce_time & 0xff000000) >> 0x18); 738 timestamp[0] = (unsigned char) ((nonce_time & 0xff000000) >> 0x18);