]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/quic_multistream_test.c
Correct order of ossl_condvar_signal in quic_multistream_test
authorNeil Horman <nhorman@openssl.org>
Fri, 3 Nov 2023 16:12:38 +0000 (12:12 -0400)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Nov 2023 14:55:40 +0000 (15:55 +0100)
commit22b482a8b6f0c0e422c9b926c26d906ac6909106
tree8f9b58350db0ceb2beea933d0c4a697da8b31bf3
parent0efcf1384fd320a6235e90d7b078ad89ea504d16
Correct order of ossl_condvar_signal in quic_multistream_test

quic_multistream test was issuing a signal on a condvar after dropping
the corresponding mutex, not before, leading to potential race
conditions in the reading of the associated data

Fixes #22588

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22616)
test/quic_multistream_test.c