]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ossl_ht_insert(): Allow for 4 iterations of grow_hashtable()
authorTomas Mraz <tomas@openssl.org>
Thu, 22 Aug 2024 12:44:02 +0000 (14:44 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Aug 2024 12:52:43 +0000 (14:52 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25273)

crypto/hashtable/hashtable.c

index 223807544785f39025f6e321e8bcd2061ccfeebb..8d7f4751b2e2248d070c46a004a5fb5a5f55f25a 100644 (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;