From 8714ba41f7fa663c4f50cbd30cdafdb2d760981a Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 21 Jul 2022 20:29:25 +0300 Subject: [PATCH] gen_auth: fixed detection of userhash in Digest Auth requests --- src/microhttpd/gen_auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microhttpd/gen_auth.c b/src/microhttpd/gen_auth.c index 67bd9dc6..26cf19ad 100644 --- a/src/microhttpd/gen_auth.c +++ b/src/microhttpd/gen_auth.c @@ -302,8 +302,8 @@ parse_dauth_params (const char *str, MHD_STATICSTR_LEN_ ("true")); else pdauth->userhash = - (MHD_STATICSTR_LEN_ ("true") == userhash.value.len) && - (0 == memcmp (str, userhash.value.str, userhash.value.len)); + MHD_str_equal_caseless_s_bin_n_ ("true", userhash.value.str, \ + userhash.value.len); } else