summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-09-09 19:22:36 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-30 15:20:13 +0000
commitbda5886239e8f3e38827d4584f27b4c591d2acce (patch)
tree97985f593de0b0ce7b7fdd6a605150e128d7845e /src
parent2af93b2643cbc5612fba847194d4e844daeead8a (diff)
session: fix session filter range
Type:fix Change-Id: I173f45bf3d90e6979675b2ac812a969539f02147 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit 61a89f2b614184eeced3f67affed959897d4da18)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vnet/session/session_cli.c2
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))