diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-25 16:51:06 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-25 18:39:40 +0300 |
commit | 8815effe667c79e8145b64e110adc9e16990b43c (patch) | |
tree | b09174d30b38ce76da3c137c46140d8aba4d045f | |
parent | 8318f56ebc0085f1319f29862b74b65304894afe (diff) | |
download | libmicrohttpd-8815effe667c79e8145b64e110adc9e16990b43c.tar.gz libmicrohttpd-8815effe667c79e8145b64e110adc9e16990b43c.zip |
Fixed regression introduced by c3680cb737bcac2a4dc14cca5a80af6ca0de21e7
-rw-r--r-- | src/microhttpd/digestauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 1155e6ff..06723884 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -955,7 +955,7 @@ get_rq_uname (const struct MHD_RqDAuth *params, | |||
955 | res = MHD_hex_to_bin (uname_info->userhash_hex, | 955 | res = MHD_hex_to_bin (uname_info->userhash_hex, |
956 | uname_info->userhash_hex_len, | 956 | uname_info->userhash_hex_len, |
957 | uname_info->userhash_bin); | 957 | uname_info->userhash_bin); |
958 | if (res != uname_info->username_len / 2) | 958 | if (res != uname_info->userhash_hex_len / 2) |
959 | { | 959 | { |
960 | uname_info->userhash_bin = NULL; | 960 | uname_info->userhash_bin = NULL; |
961 | uname_info->uname_type = MHD_DIGEST_AUTH_UNAME_TYPE_INVALID; | 961 | uname_info->uname_type = MHD_DIGEST_AUTH_UNAME_TYPE_INVALID; |