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:
c8928d9
)
Fix a memory leak in n_ssl3_mac
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Fri, 16 Mar 2018 16:07:54 +0000
(17:07 +0100)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Sat, 17 Mar 2018 07:27:21 +0000
(08:27 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5649)
ssl/record/ssl3_record.c
patch
|
blob
|
history
diff --git
a/ssl/record/ssl3_record.c
b/ssl/record/ssl3_record.c
index 6c74ea56896e30a953715fc32dde5a297a0ad8ee..f6e59d2f8421378470e1af4a126bd6e6f20144e0 100644
(file)
--- a/
ssl/record/ssl3_record.c
+++ b/
ssl/record/ssl3_record.c
@@
-947,7
+947,7
@@
int n_ssl3_mac(SSL *ssl, SSL3_RECORD *rec, unsigned char *md, int sending)
|| EVP_DigestUpdate(md_ctx, ssl3_pad_2, npad) <= 0
|| EVP_DigestUpdate(md_ctx, md, md_size) <= 0
|| EVP_DigestFinal_ex(md_ctx, md, &md_size_u) <= 0) {
- EVP_MD_CTX_
reset
(md_ctx);
+ EVP_MD_CTX_
free
(md_ctx);
return -1;
}
md_size = md_size_u;