aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-05 15:06:16 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-05 15:06:59 +0300
commit1c58c968ced8a3401bd6c5006eb47a92a5998c02 (patch)
tree2c32b5ae3f52518c15d721c95dcf068e4babb33b /src/microhttpd/digestauth.c
parent86f53a3dda1e63607b60ccacec24d7f31f3b7fc7 (diff)
downloadlibmicrohttpd-1c58c968ced8a3401bd6c5006eb47a92a5998c02.tar.gz
libmicrohttpd-1c58c968ced8a3401bd6c5006eb47a92a5998c02.zip
Fixed wrong (inverted) asserts
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r--src/microhttpd/digestauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index cf4a9256..5232ae10 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -568,7 +568,7 @@ get_nonce_nc_idx (size_t arr_size,
568 const char *nonce, 568 const char *nonce,
569 size_t noncelen) 569 size_t noncelen)
570{ 570{
571 mhd_assert (0 == arr_size); 571 mhd_assert (0 != arr_size);
572 return fast_simple_hash ((const uint8_t *) nonce, noncelen) % arr_size; 572 return fast_simple_hash ((const uint8_t *) nonce, noncelen) % arr_size;
573} 573}
574 574