From: Tomas Mraz Date: Mon, 28 Jul 2025 08:55:45 +0000 (+0200) Subject: test_tlsext_status_type(): Avoid leaking of previously allocated data X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb5e20ac74071bda4fc8b5ca6e3b115d8d683e5;p=thirdparty%2Fopenssl.git test_tlsext_status_type(): Avoid leaking of previously allocated data Fixes Coverity 1659226, 1659224, 1659223 Reviewed-by: David von Oheimb Reviewed-by: Viktor Dukhovni Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/28105) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index 216bb1b9ed0..d4450b01d49 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -1984,7 +1984,7 @@ static int test_tlsext_status_type(void) if (!create_ssl_ctx_pair(libctx, TLS_server_method(), TLS_client_method(), TLS1_VERSION, 0, &sctx, &cctx, leaf, skey)) - return 0; + goto end; if (SSL_CTX_use_certificate_chain_file(sctx, leaf_chain) <= 0) goto end; if (SSL_CTX_get_tlsext_status_type(cctx) != -1)