gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 12/14: digestauth: do not allocate extra space for exten


From: gnunet
Subject: [libmicrohttpd] 12/14: digestauth: do not allocate extra space for extended notation
Date: Thu, 21 Jul 2022 14:08:10 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit c7ac9d80a5910aa45cc2c51838b38532f37d5982
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Jul 21 13:55:06 2022 +0300

    digestauth: do not allocate extra space for extended notation
---
 src/microhttpd/digestauth.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 88a9cdbd..f4bf76c7 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -680,7 +680,8 @@ get_rq_unames_size (const struct MHD_RqDAuth *params,
       s += (params->username.value.len + 1) / 2;
   }
   else if (MHD_DIGEST_AUTH_UNAME_TYPE_EXTENDED == uname_type)
-    s += params->username_ext.value.len + 1; /* Add one byte for 
zero-termination */
+    s += params->username_ext.value.len
+         - MHD_DAUTH_EXT_PARAM_MIN_LEN + 1; /* Add one byte for 
zero-termination */
   return s;
 }
 

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