From 90a74d8c4331c363d68ecd1168bc5344f7ba9be8 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 26 Jun 2020 20:44:27 +0100 Subject: [PATCH] Fix an incorrect error flow in add_provider_groups Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/12292) --- ssl/t1_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index c9097fcc448..41228d58e9d 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -334,7 +334,7 @@ static int add_provider_groups(const OSSL_PARAM params[], void *data) p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MAX_TLS); if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->maxtls)) { SSLerr(0, ERR_R_PASSED_INVALID_ARGUMENT); - return 0; + goto err; } p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MIN_DTLS); -- 2.47.2