mirror of
https://github.com/openssl/openssl.git
synced 2025-02-05 14:10:53 +08:00
The problem is the ownership of the input parameter value is transfered to the X509_ATTRIBUTE object attr, as soon as X509_ATTRIBUTE_create succeeds, but when an error happens after that point there is no way to get the ownership back to the caller, which is necessary to fullfill the API contract. Fixed that by moving the call to X509_ATTRIBUTE_create to the end of the function, and make sure that no errors are possible after that point. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22721) |
||
---|---|---|
.. | ||
bio_pk7.c | ||
build.info | ||
pk7_asn1.c | ||
pk7_attr.c | ||
pk7_doit.c | ||
pk7_lib.c | ||
pk7_local.h | ||
pk7_mime.c | ||
pk7_smime.c | ||
pkcs7err.c |