Skip to content

Commit

Permalink
fixup! hashtable.c: Avoid infinite loop in ossl_ht_insert()
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed May 27, 2024
1 parent 4795895 commit c804045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/hashtable/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ int ossl_ht_insert(HT *h, HT_KEY *key, HT_VALUE *data, HT_VALUE **olddata)

for (i = 0;
(rc = ossl_ht_insert_locked(h, hash, newval, olddata)) == -1
&& i < 1;
&& i < 2;
++i)
if (!grow_hashtable(h, h->wpd.neighborhood_len)) {
rc = -1;
Expand Down

0 comments on commit c804045

Please sign in to comment.