Jelajahi Sumber

Fixed regression introduced by c3680cb737bcac2a4dc14cca5a80af6ca0de21e7

Evgeny Grin (Karlson2k) 3 tahun lalu
induk
melakukan
8815effe66
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/microhttpd/digestauth.c

+ 1 - 1
src/microhttpd/digestauth.c

@@ -955,7 +955,7 @@ get_rq_uname (const struct MHD_RqDAuth *params,
     res = MHD_hex_to_bin (uname_info->userhash_hex,
                           uname_info->userhash_hex_len,
                           uname_info->userhash_bin);
-    if (res != uname_info->username_len / 2)
+    if (res != uname_info->userhash_hex_len / 2)
     {
       uname_info->userhash_bin = NULL;
       uname_info->uname_type = MHD_DIGEST_AUTH_UNAME_TYPE_INVALID;