提交 f2c14768 编写于 作者: D Dr. Stephen Henson

remove invalid free

Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 8382fd3a
...@@ -2378,8 +2378,6 @@ psk_err: ...@@ -2378,8 +2378,6 @@ psk_err:
if (s->version > SSL3_VERSION) if (s->version > SSL3_VERSION)
p += 2; p += 2;
pctx = EVP_PKEY_CTX_new(pkey, NULL); pctx = EVP_PKEY_CTX_new(pkey, NULL);
EVP_PKEY_free(pkey);
pkey = NULL;
if (pctx == NULL || EVP_PKEY_encrypt_init(pctx) <= 0 if (pctx == NULL || EVP_PKEY_encrypt_init(pctx) <= 0
|| EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) { || EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) {
SSLerr(SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE, SSLerr(SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册