Skip to content

Commit

Permalink
Release pkey_ctx on initialization failure
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #24366)

(cherry picked from commit 3e9d933)
  • Loading branch information
irosay authored and t8m committed May 14, 2024
1 parent 49867ad commit 62b684a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/statem/statem_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3134,7 +3134,7 @@ static int tls_process_cke_gost(SSL *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
Expand Down

0 comments on commit 62b684a

Please sign in to comment.