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:
f96ff4e
)
Fix a memory leak in n_ssl3_mac
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Fri, 16 Mar 2018 15:45:55 +0000
(16:45 +0100)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Sat, 17 Mar 2018 07:23:43 +0000
(08:23 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5648)
ssl/record/ssl3_record.c
patch
|
blob
|
history
diff --git
a/ssl/record/ssl3_record.c
b/ssl/record/ssl3_record.c
index 5bfbaf982e2d0b82090ff99467ef6c373a58f456..4ffc84279d62b6e213d837aa7c14ad6aefe8bd88 100644
(file)
--- a/
ssl/record/ssl3_record.c
+++ b/
ssl/record/ssl3_record.c
@@
-1256,7
+1256,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 0;
}