diff options
Diffstat (limited to 'src/vnet')
-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) |