From: Hugo Landau Date: Wed, 17 Jan 2024 12:06:14 +0000 (+0000) Subject: QLOG: Fix bit_set X-Git-Tag: openssl-3.3.0-alpha1~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e6eb431e89fd733daece4997448b83df80185b4;p=thirdparty%2Fopenssl.git QLOG: Fix bit_set Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/22037) --- diff --git a/ssl/quic/qlog.c b/ssl/quic/qlog.c index 8fa55c567ea..f374d0c8c77 100644 --- a/ssl/quic/qlog.c +++ b/ssl/quic/qlog.c @@ -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 {