projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8382fd3
)
remove invalid free
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 1 Jan 2016 00:47:06 +0000
(
00:47
+0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 1 Jan 2016 00:47:06 +0000
(
00:47
+0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
ssl/statem/statem_clnt.c
patch
|
blob
|
history
diff --git
a/ssl/statem/statem_clnt.c
b/ssl/statem/statem_clnt.c
index c0eeeed10238eaf7841e85eada60d57be9ed42e5..d168b19cb880154723f61e627a9e66eceb2c7129 100644
(file)
--- a/
ssl/statem/statem_clnt.c
+++ b/
ssl/statem/statem_clnt.c
@@
-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,