mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
remove invalid free
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
8382fd3a93
commit
f2c147685a
@ -2378,8 +2378,6 @@ psk_err:
|
||||
if (s->version > SSL3_VERSION)
|
||||
p += 2;
|
||||
pctx = EVP_PKEY_CTX_new(pkey, NULL);
|
||||
EVP_PKEY_free(pkey);
|
||||
pkey = NULL;
|
||||
if (pctx == NULL || EVP_PKEY_encrypt_init(pctx) <= 0
|
||||
|| EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) {
|
||||
SSLerr(SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE,
|
||||
|
Loading…
Reference in New Issue
Block a user