gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 05/12: digestauth: additional assert


From: gnunet
Subject: [libmicrohttpd] 05/12: digestauth: additional assert
Date: Wed, 04 May 2022 14:59:39 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

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

    digestauth: additional assert
---
 src/microhttpd/digestauth.c | 2 ++
 1 file changed, 2 insertions(+)

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,
   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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]