libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 12a6689266ccc3186b4a30441979aa91ec1f5dae
parent 296e36ce9a9f6265a881125f81097a883733b15c
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  1 Feb 2018 08:40:27 +0100

fix mask

Diffstat:
MChangeLog | 3+++
Msrc/microhttpd/digestauth.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,6 @@ +Thu Feb 1 08:39:50 CET 2018 + Fix masking operation. -CG/silvioprog + Mon Jan 29 17:33:54 CET 2018 Fix deadlock when failing to prepare chunked response (#5260). -CG/ghaderer diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -428,7 +428,7 @@ check_nonce_nc (struct MHD_Connection *connection, (0 == ((1LLU << (nn->nc - nc - 1)) & nn->nmask)) ) { /* Out-of-order nonce, but within 64-bit bitmask, set bit */ - nn->nmask |= (1LLU < (nn->nc - nc - 1)); + nn->nmask |= (1LLU << (nn->nc - nc - 1)); MHD_mutex_unlock_chk_ (&daemon->nnc_lock); return MHD_YES; }