summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/lhash/lhash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/lhash/lhash.c b/src/lib/libcrypto/lhash/lhash.c
index cd69f6fec1..a271934c76 100644
--- a/src/lib/libcrypto/lhash/lhash.c
+++ b/src/lib/libcrypto/lhash/lhash.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: lhash.c,v 1.22 2024/03/02 11:11:11 tb Exp $ */ 1/* $OpenBSD: lhash.c,v 1.22.2.1 2024/05/11 02:18:20 mlarkin Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -294,7 +294,9 @@ doall_util_fn(_LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
294 294
295 /* Restore down load factor and trigger contraction. */ 295 /* Restore down load factor and trigger contraction. */
296 lh->down_load = down_load; 296 lh->down_load = down_load;
297 contract(lh); 297 if ((lh->num_nodes > MIN_NODES) &&
298 (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)))
299 contract(lh);
298} 300}
299 301
300void 302void