Skip to content
Commit e347162e authored by Daniel Gustafsson's avatar Daniel Gustafsson Committed by Tomas Mraz
Browse files

Fix memleak in rsa_cms_sign error path



If the call to X509_ALGOR_set0 fails then the allocated ASN1_STRING
variable passed as parameter leaks.  Fix by explicitly freeing like
how all other codepaths with X509_ALGOR_set0 do.

Fixes #22680

Reviewed-by: default avatarNeil Horman <nhorman@openssl.org>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24868)

(cherry picked from commit 5efc57ca)
parent 1441f2bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment