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:
parent
2af93b2643
commit
bda5886239
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user