OBJ_nid2obj(): Return UNDEF object instead of NULL for NID_undef
authorTomas Mraz <tomas@openssl.org>
Tue, 21 Mar 2023 10:36:56 +0000 (11:36 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 23 Mar 2023 14:38:35 +0000 (15:38 +0100)
commitb9b8e9ee9dd2a3eb2876ec45605c64f343d5548e
treeec6414f8a9626b5b91a285b1a8185772dc1dee70
parent0f1164a66d8051dc080b46dc1f35990665e83ad2
OBJ_nid2obj(): Return UNDEF object instead of NULL for NID_undef

Fixes a regression from 3.0 from the obj creation refactoring.

Fixes #20555

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20556)

(cherry picked from commit 908ba3ed9adbb3df90f7684a3111ca916a45202d)
crypto/objects/obj_dat.c
test/asn1_internal_test.c