]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a possible memory leak in ossl_x509_algor_md_to_mgf1
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 10 Dec 2023 14:21:19 +0000 (15:21 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 19 Dec 2023 17:33:38 +0000 (18:33 +0100)
commitdbc819bd36c2dccde58ece3330a6f47434590c57
tree9c66a7da0dc67a9b042113f2054e101b8f92fc4c
parent27764db49082d7a57ebe7030aca1ab11757abccd
Fix a possible memory leak in ossl_x509_algor_md_to_mgf1

Add a missing check of the return code of X509_ALGOR_set0.
otherwise a memory leak may occur.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22999)

(cherry picked from commit 493d6c9ab37b18b110c977a2bc896f06b18f6065)
crypto/asn1/x_algor.c