gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 18/22: digestauth: changed "slot used" detection logic


From: gnunet
Subject: [libmicrohttpd] 18/22: digestauth: changed "slot used" detection logic
Date: Sun, 25 Sep 2022 17:43:53 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit f26b806199a9ec0eb72fa217f855c9a4cff78983
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Sep 16 10:35:37 2022 +0300

    digestauth: changed "slot used" detection logic
---
 src/microhttpd/digestauth.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 83ecbf5e..eb9f34d7 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -1465,12 +1465,10 @@ is_slot_available (const struct MHD_NonceNc *const nn,
   if (0 == nn->nonce[0])
     return true; /* The slot is empty */
 
-  if ((0 == memcmp (nn->nonce, new_nonce, new_nonce_len)) &&
-      (0 == nn->nonce[new_nonce_len]))
+  if (0 == memcmp (nn->nonce, new_nonce, new_nonce_len))
   {
-    /* The slot has the same nonce already, the same nonce was already 
generated
-     * and used, this slot cannot be used with the same nonce as it would
-     * just reset received 'nc' values. */
+    /* The slot has the same nonce already. This nonce cannot be registered
+     * again as it would just clear 'nc' usage history. */
     return false;
   }
 

-- 
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]