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:
4960411
)
fix memory leak
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 8 Jun 2011 15:55:43 +0000
(15:55 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 8 Jun 2011 15:55:43 +0000
(15:55 +0000)
ssl/s3_clnt.c
patch
|
blob
|
history
diff --git
a/ssl/s3_clnt.c
b/ssl/s3_clnt.c
index 9e52ed4f01668685443df4b372490763c0994e4c..af8db0064068edd87866d23150797bd89a55d8ef 100644
(file)
--- a/
ssl/s3_clnt.c
+++ b/
ssl/s3_clnt.c
@@
-2408,6
+2408,7
@@
int ssl3_send_client_key_exchange(SSL *s)
if (!DH_generate_key(dh_clnt))
{
SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB);
+ DH_free(dh_clnt);
goto err;
}
@@
-2419,6
+2420,7
@@
int ssl3_send_client_key_exchange(SSL *s)
if (n <= 0)
{
SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB);
+ DH_free(dh_clnt);
goto err;
}