Christian Grothoff 9 lat temu
rodzic
commit
41a8c73e4c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/microhttpd/digestauth.c

+ 1 - 1
src/microhttpd/digestauth.c

@@ -424,7 +424,7 @@ check_nonce_nc (struct MHD_Connection *connection,
   if ( (nc < nn->nc) &&
        (nc + 64 > nc /* checking for overflow */) &&
        (nc + 64 >= nn->nc) &&
-       (0 == (1LLU < (nn->nc - nc - 1)) & nn->nmask) )
+       (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));