summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorirosay <59870261+irosay@users.noreply.github.com>2024-05-10 17:37:52 +0100
committerTomas Mraz <tomas@openssl.org>2024-05-14 17:58:34 +0200
commit3e9d933882407a0792dc3466ba9a0d53d40677a7 (patch)
tree16ca677183ef9bb7682bccb034815f17a0b58c8d /ssl
parent50f2e2146aa1092bdf3435a3543e8a5d0b4c4d4c (diff)
Release pkey_ctx on initialization failure
CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24366)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/statem/statem_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c
index 1c38548fe0..5ff479a2ec 100644
--- a/ssl/statem/statem_srvr.c
+++ b/ssl/statem/statem_srvr.c
@@ -3230,7 +3230,7 @@ static int tls_process_cke_gost(SSL_CONNECTION *s, PACKET *pkt)
}
if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
- return 0;
+ goto err;
}
/*
* If client certificate is present and is of the same type, maybe