From: Hugo Landau Date: Thu, 21 Apr 2022 15:10:33 +0000 (+0100) Subject: Fix bug in OPENSSL_LH_flush X-Git-Tag: openssl-3.2.0-alpha1~2742 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5da68183410c06f7b350a0721bc2bd6057e438e;p=thirdparty%2Fopenssl.git Fix bug in OPENSSL_LH_flush Fixes #18139. Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18141) --- diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 2a574fbfe6a..16f482db68a 100644 --- a/crypto/lhash/lhash.c +++ b/crypto/lhash/lhash.c @@ -100,6 +100,8 @@ void OPENSSL_LH_flush(OPENSSL_LHASH *lh) } lh->b[i] = NULL; } + + lh->num_items = 0; } void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data)