Skip to content

Commit

Permalink
Fix bug in OPENSSL_LH_flush
Browse files Browse the repository at this point in the history
Fixes #18139.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #18141)
  • Loading branch information
hlandau authored and t8m committed Apr 25, 2022
1 parent a625354 commit e5da681
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/lhash/lhash.c
Expand Up @@ -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)
Expand Down

0 comments on commit e5da681

Please sign in to comment.