]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix the return value of OBJ_create
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 18 Aug 2025 09:39:52 +0000 (11:39 +0200)
committerNeil Horman <nhorman@openssl.org>
Tue, 19 Aug 2025 13:20:04 +0000 (09:20 -0400)
commit5e34d6476016db7630aed77e927d95dd94fc67b0
treeadb317d99bc31051c4877c3a9117cadca8bf8b2c
parenta71b4fae432796a49c3b9d32ae29354b23809c1f
Fix the return value of OBJ_create

OBJ_create is supposed to return NID_undef on error
and the newly created NID on success.

Fixes: 88a1fbb8d1b2 ("reduce lock contention when adding objects to ADDED_OBJ hash table")
Reviewed-by: Neil Horman <nhorman@openssl.org>
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/28293)
crypto/objects/obj_dat.c
test/evp_extra_test.c