Garbage collect xobj->data.{ptr,pkey}
authortb <tb@openbsd.org>
Fri, 5 Nov 2021 07:25:36 +0000 (07:25 +0000)
committertb <tb@openbsd.org>
Fri, 5 Nov 2021 07:25:36 +0000 (07:25 +0000)
commit0e189bdbd1d93df7591e98bc919ba996a0adcb83
treef6ca5b0a0a3065e0a63b7b725cc1bc2673892c04
parent8e70308434336a8fb7fc2d39be587f8c3ff3d019
Garbage collect xobj->data.{ptr,pkey}

Both these are essentially unused. Remove the last use of data.ptr
by initializing and copying the X509_OBJECT using memset() and
struct assignment in X509_STORE_CTX_get_subject_by_name() and add
a missing error check for X509_OBJECT_up_ref_count() while there.

ok beck
lib/libcrypto/x509/x509_lcl.h
lib/libcrypto/x509/x509_lu.c