]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a possible memleak in CMS_sign_receipt
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 17 Nov 2023 06:12:42 +0000 (07:12 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 22 Nov 2023 08:31:03 +0000 (09:31 +0100)
commit3e3aadd51cae1fbfb512cf4a0999d16c6a2888bd
tree3ee45e22fc8b1062ebb3a8b7580a5c9813f26b2b
parented3d2771278cfa1c355b40c681f5acc8404156c6
Fix a possible memleak in CMS_sign_receipt

When an error happens after cms_encode_Receipt
the ASN1_OCTET_STRING object "os" may be leaked.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22758)
crypto/cms/cms_smime.c