mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
Fix leak on error in tls_construct_cke_gost
Don't leak pke_ctx on error. Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
b1b22b0b77
commit
2f3930bc0e
@ -2368,7 +2368,7 @@ static int tls_construct_cke_gost(SSL *s, unsigned char **p, int *len, int *al)
|
||||
if (pms == NULL) {
|
||||
*al = SSL_AD_INTERNAL_ERROR;
|
||||
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_GOST, ERR_R_MALLOC_FAILURE);
|
||||
return 0;
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (EVP_PKEY_encrypt_init(pkey_ctx) <= 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user