diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-04-21 16:10:33 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-04-25 13:19:41 +0200 |
commit | e5da68183410c06f7b350a0721bc2bd6057e438e (patch) | |
tree | 57f013a6ff605d4b86c9e2ba89448e61544fa654 /crypto/lhash | |
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)
Diffstat (limited to 'crypto/lhash')
-rw-r--r-- | crypto/lhash/lhash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 2a574fbfe6..16f482db68 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) |