]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QLOG: Fix bit_set
authorHugo Landau <hlandau@openssl.org>
Wed, 17 Jan 2024 12:06:14 +0000 (12:06 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 2 Feb 2024 11:49:34 +0000 (11:49 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)

ssl/quic/qlog.c

index 8fa55c567ea1a3011ead7bee57c281df8094f222..f374d0c8c77b0e722411321c84868bbff9bc369d 100644 (file)
@@ -27,7 +27,7 @@ static ossl_unused ossl_inline void bit_set(size_t *p, uint32_t bit_no, int enab
     if (enable)
         p[bit_no / BITS_PER_WORD] |= mask;
     else
-        p[bit_no / BITS_PER_WORD] &= mask;
+        p[bit_no / BITS_PER_WORD] &= ~mask;
 }
 
 struct qlog_st {