summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
Diffstat (limited to 'proc')
-rw-r--r--proc/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc/hash.c b/proc/hash.c
index eb906851..ad13f271 100644
--- a/proc/hash.c
+++ b/proc/hash.c
@@ -116,12 +116,12 @@ findhash (struct htable *ht,
return 0;
for (h = HASH (id, ht);
- (ht->tab[h] != 0 && ht->ids[h] != id && h != firsth);
+ (ht->tab[h] != 0 && ht->ids[h] != id && h != firsth);
firsth = (firsth == -1) ? h : firsth, h = REHASH (id, ht, h))
;
if (ht->ids[h] == id)
- ret = ht->tab[h];
+ ret = ht->tab[h] == HASH_DEL ? 0 : ht->tab[h];
else
ret = 0;
return ret;