summaryrefslogtreecommitdiff
path: root/libihash
diff options
context:
space:
mode:
Diffstat (limited to 'libihash')
-rw-r--r--libihash/ihash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libihash/ihash.c b/libihash/ihash.c
index 8b1ad1f8..598d3412 100644
--- a/libihash/ihash.c
+++ b/libihash/ihash.c
@@ -267,6 +267,7 @@ hurd_ihash_locp_add (hurd_ihash_t ht, hurd_ihash_locp_t locp,
if (ht->size == 0
|| item == NULL
|| item->value == _HURD_IHASH_DELETED
+ || ! compare (ht, item->key, key)
|| hurd_ihash_get_load (ht) > ht->max_load)
return hurd_ihash_add (ht, key, value);