aboutsummaryrefslogtreecommitdiff
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
parent296e36ce9a9f6265a881125f81097a883733b15c (diff)
downloadlibmicrohttpd-12a6689266ccc3186b4a30441979aa91ec1f5dae.tar.gz
libmicrohttpd-12a6689266ccc3186b4a30441979aa91ec1f5dae.zip
fix mask
-rw-r--r--ChangeLog3
-rw-r--r--src/microhttpd/digestauth.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3537d9bd..b58a988f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Thu Feb 1 08:39:50 CET 2018
2 Fix masking operation. -CG/silvioprog
3
1Mon Jan 29 17:33:54 CET 2018 4Mon Jan 29 17:33:54 CET 2018
2 Fix deadlock when failing to prepare chunked response 5 Fix deadlock when failing to prepare chunked response
3 (#5260). -CG/ghaderer 6 (#5260). -CG/ghaderer
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 }