diff --git a/src/cache.c b/src/cache.c index 287ff5325..6ac23b27c 100644 --- a/src/cache.c +++ b/src/cache.c @@ -2589,7 +2589,7 @@ static int cli_io_handler_show_cache(struct appctx *appctx) while (1) { shctx_lock(shctx_ptr(cache)); - if (!node || (node = eb32_next_dup(node)) == NULL) + if (!node) node = eb32_lookup_ge(&cache->entries, next_key); if (!node) { shctx_unlock(shctx_ptr(cache));