diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-21 20:29:25 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-25 16:20:48 +0300 |
commit | 8714ba41f7fa663c4f50cbd30cdafdb2d760981a (patch) | |
tree | 3805e577645d37819f758871a8c3fc9a1fe7dfe8 | |
parent | 7ace1e11a3c9e2e5dbfee6824b9cd85a73ab6009 (diff) | |
download | libmicrohttpd-8714ba41f7fa663c4f50cbd30cdafdb2d760981a.tar.gz libmicrohttpd-8714ba41f7fa663c4f50cbd30cdafdb2d760981a.zip |
gen_auth: fixed detection of userhash in Digest Auth requests
-rw-r--r-- | src/microhttpd/gen_auth.c | 4 |
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 |