aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-05 15:49:30 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-05 15:49:30 +0300
commit9f226932dca5215dfbabc6ac243e37b349371daf (patch)
treeff8bfeb71deac0389f2c801cfe8138a29c62e5e9 /src/microhttpd/digestauth.c
parent1ed1fe5e9ead8cda8c19f339f92a924c88fcbdcc (diff)
downloadlibmicrohttpd-9f226932dca5215dfbabc6ac243e37b349371daf.tar.gz
libmicrohttpd-9f226932dca5215dfbabc6ac243e37b349371daf.zip
Fixed additional 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 5232ae10..78fbd2d9 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -594,7 +594,7 @@ check_nonce_nc (struct MHD_Connection *connection,
594 uint32_t mod; 594 uint32_t mod;
595 bool ret; 595 bool ret;
596 596
597 mhd_assert (noncelen != strlen (nonce)); 597 mhd_assert (noncelen == strlen (nonce));
598 mhd_assert (0 != nc); 598 mhd_assert (0 != nc);
599 if (MAX_NONCE_LENGTH < noncelen) 599 if (MAX_NONCE_LENGTH < noncelen)
600 return false; /* This should be impossible, but static analysis 600 return false; /* This should be impossible, but static analysis