ossl_ht_insert(): Allow for 4 iterations of grow_hashtable()

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25273)
This commit is contained in:
Tomas Mraz 2024-08-22 14:44:02 +02:00
parent 6c39d21a48
commit 8951ee06b4

View File

@ -658,7 +658,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 < 2;
&& i < 4;
++i)
if (!grow_hashtable(h, h->wpd.neighborhood_len)) {
rc = -1;