]> 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>
Wed, 3 Sep 2025 11:47:33 +0000 (07:47 -0400)
commit146889381ab353a8769f85288f45cc3580ffc50f
tree2781b7c9a6c1c470f2040c663ac9651e3cc46052
parentfe20f846f31a43fc5a26240c24fefcbd026b1aa2
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/28405)
test/radix/quic_bindings.c