From: Tomas Mraz Date: Tue, 7 Jun 2022 12:17:32 +0000 (+0200) Subject: add_provider_groups: Clean up algorithm pointer on failure X-Git-Tag: openssl-3.2.0-alpha1~2544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7863f994955c45fb7ce29e30b81a6206994c3dd;p=thirdparty%2Fopenssl.git add_provider_groups: Clean up algorithm pointer on failure Reviewed-by: Shane Lontis Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/18494) --- diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index c22aff9e58b..d73bdffb62c 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -369,7 +369,7 @@ static int add_provider_groups(const OSSL_PARAM params[], void *data) OPENSSL_free(ginf->tlsname); OPENSSL_free(ginf->realname); OPENSSL_free(ginf->algorithm); - ginf->tlsname = ginf->realname = NULL; + ginf->algorithm = ginf->tlsname = ginf->realname = NULL; } return ret; }