From: Andrew Dinh Date: Wed, 26 Feb 2025 14:35:47 +0000 (+0700) Subject: Update slh_dsa_test.c X-Git-Tag: openssl-3.5.0-alpha1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=237b761ab4987c7d9b798de04ba25fea2af4e500;p=thirdparty%2Fopenssl.git Update slh_dsa_test.c Fix https://scan5.scan.coverity.com/#/project-view/62507/10222?selectedIssue=1642943 Reviewed-by: Saša Nedvědický Reviewed-by: Neil Horman Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/26916) --- diff --git a/test/slh_dsa_test.c b/test/slh_dsa_test.c index 9deb672baee..2d7ac2d9211 100644 --- a/test/slh_dsa_test.c +++ b/test/slh_dsa_test.c @@ -311,7 +311,7 @@ static EVP_PKEY *do_gen_key(const char *alg, || !TEST_int_eq(EVP_PKEY_keygen_init(ctx), 1) || !TEST_int_eq(EVP_PKEY_CTX_set_params(ctx, params), 1) || !TEST_int_eq(EVP_PKEY_generate(ctx, &pkey), 1)) - goto err; + pkey = NULL; err: EVP_PKEY_CTX_free(ctx); return pkey;