diff options
-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; |