diff options
author | Matt Caswell <matt@openssl.org> | 2016-08-22 22:17:20 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-23 00:19:15 +0100 |
commit | 2f3930bc0edbfdc7718f709b856fa53f0ec57cde (patch) | |
tree | d2a6d9e9088c0cbbd761494758d2ae1adc6d3230 /ssl/statem/statem_clnt.c | |
parent | b1b22b0b77c2118377320d9a665f495fdea7d419 (diff) |
Fix leak on error in tls_construct_cke_gost
Don't leak pke_ctx on error.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'ssl/statem/statem_clnt.c')
-rw-r--r-- | ssl/statem/statem_clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index 8f250cdc13..ff42858ff3 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -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 |