From 12a6689266ccc3186b4a30441979aa91ec1f5dae Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 1 Feb 2018 08:40:27 +0100 Subject: fix mask --- src/microhttpd/digestauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/microhttpd/digestauth.c') 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, (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; } -- cgit v1.2.3