aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-02-01 08:40:27 +0100
committerChristian Grothoff <christian@grothoff.org>2018-02-01 08:40:27 +0100
commit12a6689266ccc3186b4a30441979aa91ec1f5dae (patch)
tree10f28011d6c87aee70a8d0ee53d23c2f8eb8d75b /src/microhttpd/digestauth.c
parent296e36ce9a9f6265a881125f81097a883733b15c (diff)
downloadlibmicrohttpd-12a6689266ccc3186b4a30441979aa91ec1f5dae.tar.gz
libmicrohttpd-12a6689266ccc3186b4a30441979aa91ec1f5dae.zip
fix mask
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 7226becf..f95f4d62 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -428,7 +428,7 @@ check_nonce_nc (struct MHD_Connection *connection,
428 (0 == ((1LLU << (nn->nc - nc - 1)) & nn->nmask)) ) 428 (0 == ((1LLU << (nn->nc - nc - 1)) & nn->nmask)) )
429 { 429 {
430 /* Out-of-order nonce, but within 64-bit bitmask, set bit */ 430 /* Out-of-order nonce, but within 64-bit bitmask, set bit */
431 nn->nmask |= (1LLU < (nn->nc - nc - 1)); 431 nn->nmask |= (1LLU << (nn->nc - nc - 1));
432 MHD_mutex_unlock_chk_ (&daemon->nnc_lock); 432 MHD_mutex_unlock_chk_ (&daemon->nnc_lock);
433 return MHD_YES; 433 return MHD_YES;
434 } 434 }