Skip to content

Commit

Permalink
Release pkey_ctx on initialization failure
Browse files Browse the repository at this point in the history
CLA: trivial
  • Loading branch information
irosay committed May 13, 2024
1 parent 87314d2 commit 033dd55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssl/statem/statem_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3229,6 +3229,7 @@ static int tls_process_cke_gost(SSL_CONNECTION *s, PACKET *pkt)
return 0;
}
if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) {
EVP_PKEY_CTX_free(pkey_ctx);
SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
return 0;
}
Expand Down

0 comments on commit 033dd55

Please sign in to comment.