summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2024-08-22 14:44:02 +0200
committerTomas Mraz <tomas@openssl.org>2024-08-22 14:52:43 +0200
commit8951ee06b4344ddefd7758e0faf140e2bb64831a (patch)
tree3b48d8e376b0087e1434e746328b17f2311e24a9 /crypto
parentReplace PKCS#1 v1.5 padding in RSA PCT (diff)
downloadopenssl-8951ee06b4344ddefd7758e0faf140e2bb64831a.tar.xz
openssl-8951ee06b4344ddefd7758e0faf140e2bb64831a.zip
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)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/hashtable/hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hashtable/hashtable.c b/crypto/hashtable/hashtable.c
index 2238075447..8d7f4751b2 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;