aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-07-21 20:29:25 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-07-25 16:20:48 +0300
commit8714ba41f7fa663c4f50cbd30cdafdb2d760981a (patch)
tree3805e577645d37819f758871a8c3fc9a1fe7dfe8
parent7ace1e11a3c9e2e5dbfee6824b9cd85a73ab6009 (diff)
downloadlibmicrohttpd-8714ba41f7fa663c4f50cbd30cdafdb2d760981a.tar.gz
libmicrohttpd-8714ba41f7fa663c4f50cbd30cdafdb2d760981a.zip
gen_auth: fixed detection of userhash in Digest Auth requests
-rw-r--r--src/microhttpd/gen_auth.c4
1 files 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,
302 MHD_STATICSTR_LEN_ ("true")); 302 MHD_STATICSTR_LEN_ ("true"));
303 else 303 else
304 pdauth->userhash = 304 pdauth->userhash =
305 (MHD_STATICSTR_LEN_ ("true") == userhash.value.len) && 305 MHD_str_equal_caseless_s_bin_n_ ("true", userhash.value.str, \
306 (0 == memcmp (str, userhash.value.str, userhash.value.len)); 306 userhash.value.len);
307 307
308 } 308 }
309 else 309 else