aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_worker.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-19 19:20:19 +0000
committerFlorin Coras <fcoras@cisco.com>2020-04-19 19:20:19 +0000
commit701c099fadc50e5b4058a0a317fea86a88a7e5eb (patch)
treea35d345bd3367312191f47e05db5f572acd1d828 /src/vnet/session/application_worker.c
parent101fc278c3b7009c42574a25b96c4fb7fcd15e39 (diff)
session: fix half-open cleanup
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I931d23cf617c8f24fe9a02982ab129785bbd184d
Diffstat (limited to 'src/vnet/session/application_worker.c')
-rw-r--r--src/vnet/session/application_worker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c
index c67aa88db05..8eebaf003e6 100644
--- a/src/vnet/session/application_worker.c
+++ b/src/vnet/session/application_worker.c
@@ -60,7 +60,7 @@ app_worker_free (app_worker_t * app_wrk)
segment_manager_t *sm;
session_t *ls;
u32 sm_index;
- int i;
+ int i, j;
/*
* Listener cleanup
@@ -114,8 +114,8 @@ app_worker_free (app_worker_t * app_wrk)
}));
/* *INDENT-ON* */
- for (i = 0; i < vec_len (handles); i++)
- session_cleanup_half_open (i, handles[i]);
+ for (j = 0; j < vec_len (handles); j++)
+ session_cleanup_half_open (i, handles[j]);
hash_free (app_wrk->half_open_table[i]);
vec_reset_length (handles);