]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
add_provider_groups: Clean up algorithm pointer on failure
authorTomas Mraz <tomas@openssl.org>
Tue, 7 Jun 2022 12:17:32 +0000 (14:17 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 10 Jun 2022 12:06:57 +0000 (14:06 +0200)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18494)

ssl/t1_lib.c

index c22aff9e58b53e3388862ab075d0d44bb29f7093..d73bdffb62c24507a58ca7224440d138d18a2cbb 100644 (file)
@@ -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;
 }