diff options
author | Florin Coras <fcoras@cisco.com> | 2019-09-09 19:22:36 -0700 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2019-09-10 14:37:56 +0000 |
commit | 61a89f2b614184eeced3f67affed959897d4da18 (patch) | |
tree | 978c1830bb676e1d4959c137a5c87a54ff062de3 /src | |
parent | 78dae00881d26b205ee6721ce8c2bcae76996e79 (diff) |
session: fix session filter range
Type:fix
Change-Id: I173f45bf3d90e6979675b2ac812a969539f02147
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/vnet/session/session_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c index d8aedd64e23..770ae086cc0 100755 --- a/src/vnet/session/session_cli.c +++ b/src/vnet/session/session_cli.c @@ -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)) |