X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=8ed9c10b2386c710c2791ed8db3565d4ea13bce5;hp=cd25d336aea3ef781456c046699ef86e2de81b92;hb=59e371e3c619d7f85698bd997ac556cea49632f3;hpb=d933dd0e116eceb59b1df0f223e3962a1e51bfb3 diff --git a/rculfhash.c b/rculfhash.c index cd25d33..8ed9c10 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1280,11 +1280,11 @@ void cds_lfht_lookup(struct cds_lfht *ht, void *key, size_t key_len, node = clear_flag(node); for (;;) { if (unlikely(is_end(node))) { - node = NULL; + node = next = NULL; break; } if (unlikely(node->p.reverse_hash > reverse_hash)) { - node = NULL; + node = next = NULL; break; } next = rcu_dereference(node->p.next); @@ -1316,11 +1316,11 @@ void cds_lfht_next(struct cds_lfht *ht, struct cds_lfht_iter *iter) for (;;) { if (unlikely(is_end(node))) { - node = NULL; + node = next = NULL; break; } if (unlikely(node->p.reverse_hash > reverse_hash)) { - node = NULL; + node = next = NULL; break; } next = rcu_dereference(node->p.next);