commit | e5da68183410c06f7b350a0721bc2bd6057e438e | [log] [tgz] |
---|---|---|
author | Hugo Landau <hlandau@openssl.org> | Thu Apr 21 16:10:33 2022 +0100 |
committer | Tomas Mraz <tomas@openssl.org> | Mon Apr 25 13:19:41 2022 +0200 |
tree | 57f013a6ff605d4b86c9e2ba89448e61544fa654 | |
parent | a625354d82aad711141172efb3b39b7689318fe2 [diff] |
Fix bug in OPENSSL_LH_flush Fixes #18139. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18141)
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 2a574fb..16f482d 100644 --- a/crypto/lhash/lhash.c +++ b/crypto/lhash/lhash.c
@@ -100,6 +100,8 @@ } lh->b[i] = NULL; } + + lh->num_items = 0; } void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data)