diff options
author | Florin Coras <fcoras@cisco.com> | 2019-11-01 14:03:28 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-11-03 17:55:28 +0000 |
commit | 2d0b2bbb97d57cb4bac30e4f3138b70c277aee47 (patch) | |
tree | 0b03f7005f6edb6fa8314c4e60e027641081ca37 /src/vnet/session/session_cli.c | |
parent | dd97a48d9fac91c7f16a31aa661dd6c968c3b760 (diff) |
session: fix show cli with closed session
Type: fix
Change-Id: Ifb6ead644c0273b84a5647f7923053f1db7c5a76
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_cli.c')
-rwxr-xr-x | src/vnet/session/session_cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c index 770ae086cc0..b03353e564a 100755 --- a/src/vnet/session/session_cli.c +++ b/src/vnet/session/session_cli.c @@ -252,7 +252,7 @@ static void session_cli_show_all_sessions (vlib_main_t * vm, int verbose) { session_main_t *smm = &session_main; - u32 n_closed = 0, thread_index; + u32 n_closed, thread_index; session_t *pool, *s; for (thread_index = 0; thread_index < vec_len (smm->wrk); thread_index++) @@ -285,6 +285,8 @@ session_cli_show_all_sessions (vlib_main_t * vm, int verbose) thread_index ? "\n" : "", "Connection", "State", "Rx-f", "Tx-f"); + n_closed = 0; + /* *INDENT-OFF* */ pool_foreach(s, pool, ({ if (s->session_state >= SESSION_STATE_TRANSPORT_DELETED) |