From: Tomas Mraz Date: Thu, 22 Aug 2024 12:44:02 +0000 (+0200) Subject: ossl_ht_insert(): Allow for 4 iterations of grow_hashtable() X-Git-Tag: openssl-3.4.0-alpha1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8951ee06b4344ddefd7758e0faf140e2bb64831a;p=thirdparty%2Fopenssl.git ossl_ht_insert(): Allow for 4 iterations of grow_hashtable() Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/25273) --- diff --git a/crypto/hashtable/hashtable.c b/crypto/hashtable/hashtable.c index 22380754478..8d7f4751b2e 100644 --- a/crypto/hashtable/hashtable.c +++ b/crypto/hashtable/hashtable.c @@ -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;