commit 8815effe667c79e8145b64e110adc9e16990b43c
parent 8318f56ebc0085f1319f29862b74b65304894afe
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 25 Sep 2022 16:51:06 +0300
Fixed regression introduced by c3680cb737bcac2a4dc14cca5a80af6ca0de21e7
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -955,7 +955,7 @@ get_rq_uname (const struct MHD_RqDAuth *params,
res = MHD_hex_to_bin (uname_info->userhash_hex,
uname_info->userhash_hex_len,
uname_info->userhash_bin);
- if (res != uname_info->username_len / 2)
+ if (res != uname_info->userhash_hex_len / 2)
{
uname_info->userhash_bin = NULL;
uname_info->uname_type = MHD_DIGEST_AUTH_UNAME_TYPE_INVALID;