]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/radix/quic_bindings.c: move locking after child_script_info assignment
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 1 Sep 2025 12:38:10 +0000 (14:38 +0200)
committerNeil Horman <nhorman@openssl.org>
Sat, 6 Sep 2025 14:19:40 +0000 (10:19 -0400)
commit676fbb064a74a1563b3e8b364d8a5dd01b837d11
tree8636e82768035dee1234345e2cd2ed28108467eb
parentfd44a134fddca227ce0118b4163d40651ed19a1f
test/radix/quic_bindings.c: move locking after child_script_info assignment

Coverity complains that some child_script_info field accesses are guarded
by the mutexes, while others are not;  placate it by performing the assignment
before taking the lock.

Resolves: https://scan5.scan.coverity.com/#/project-view/65248/10222?selectedIssue=1665151
References: https://github.com/openssl/project/issues/1362
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28406)
test/radix/quic_bindings.c