[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
Rich Salz
rsalz at openssl.org
Wed Sep 21 14:42:39 UTC 2016
The branch OpenSSL_1_0_2-stable has been updated
via ceb7342dab3ab0827b3e13dd9a367d31c7bc3f43 (commit)
from 9583e4166d02e160873daaaceb2f8dfe62e49659 (commit)
- Log -----------------------------------------------------------------
commit ceb7342dab3ab0827b3e13dd9a367d31c7bc3f43
Author: Rich Salz <rsalz at openssl.org>
Date: Fri Sep 9 10:52:59 2016 -0400
GH1555: Don't bump size on realloc failure
Reviewed-by: Richard Levitte <levitte at openssl.org>
(cherry picked from commit 6fcace45bda108ad4d3f95261494dd479720d92c)
-----------------------------------------------------------------------
Summary of changes:
crypto/lhash/lhash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c
index 53c5c13..f20353a 100644
--- a/crypto/lhash/lhash.c
+++ b/crypto/lhash/lhash.c
@@ -335,8 +335,8 @@ static void expand(_LHASH *lh)
n = (LHASH_NODE **)OPENSSL_realloc(lh->b,
(int)(sizeof(LHASH_NODE *) * j));
if (n == NULL) {
-/* fputs("realloc error in lhash",stderr); */
lh->error++;
+ lh->num_nodes--;
lh->p = 0;
return;
}
More information about the openssl-commits
mailing list