]> git.ipfire.org Git - thirdparty/openssl.git/commit
move added creation to happen outside of write lock
authorNeil Horman <nhorman@openssl.org>
Sun, 13 Jul 2025 12:51:41 +0000 (08:51 -0400)
committerNeil Horman <nhorman@openssl.org>
Tue, 29 Jul 2025 17:23:38 +0000 (13:23 -0400)
commitcff803116397c2c69649f8f69a62a0623a97d2c8
tree4aa9c5e73474d007fa25bc8ab6a3932e0a43c65d
parent758ca8acf03891ddd5aa5f980e3bb9f4b338f0e2
move added creation to happen outside of write lock

We have a global ADDED_OBJ hashtable, and we check to create it
on every object add with the write lock potentially held.  move that
creation to a RUN_ONCE routine so that its always created before the
write lock is held

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28081)
crypto/objects/obj_dat.c