[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Sat Mar 17 07:28:07 UTC 2018
The branch OpenSSL_1_1_0-stable has been updated
via ba2502d7a63514cdc6a517bb0b095867c3cf13f3 (commit)
from c8928d909ee808dbd2c4658c5d7c095aa0a94e08 (commit)
- Log -----------------------------------------------------------------
commit ba2502d7a63514cdc6a517bb0b095867c3cf13f3
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Fri Mar 16 17:07:54 2018 +0100
Fix a memory leak in n_ssl3_mac
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5649)
-----------------------------------------------------------------------
Summary of changes:
ssl/record/ssl3_record.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ssl/record/ssl3_record.c b/ssl/record/ssl3_record.c
index 6c74ea5..f6e59d2 100644
--- 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;
More information about the openssl-commits
mailing list