session: fix session filter range

Type:fix

Change-Id: I173f45bf3d90e6979675b2ac812a969539f02147
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit 61a89f2b614184eeced3f67affed959897d4da18)
This commit is contained in:
Florin Coras 2019-09-09 19:22:36 -07:00 committed by Andrew Yourtchenko
parent 2af93b2643
commit bda5886239

View File

@ -353,7 +353,7 @@ session_cli_show_session_filter (vlib_main_t * vm, u32 thread_index,
return;
}
max_index = pool_elts (pool) ? pool_elts (pool) - 1 : 0;
max_index = pool_len (pool) ? pool_len (pool) - 1 : 0;
for (i = start; i <= clib_min (end, max_index); i++)
{
if (pool_is_free_index (pool, i))