summaryrefslogtreecommitdiffstats
path: root/src/vnet/session-apps
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-05-14 01:44:01 -0700
committerFlorin Coras <fcoras@cisco.com>2018-05-14 02:33:35 -0700
commit70816f0cca308ce3cbf98cdbdb14e02550362b9f (patch)
treeae67d5f95fd3a80ffaa2e4e198e5ecb2c6d40474 /src/vnet/session-apps
parentab96d181e995de15bc708372009b0b3238585f28 (diff)
proxy: fix active open connection cleanup
Thanks to DucTM for spotting the issue. Change-Id: I7985560f224c99cf0fdeea0c8457a3ac6f10b03c Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session-apps')
-rw-r--r--src/vnet/session-apps/proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session-apps/proxy.c b/src/vnet/session-apps/proxy.c
index 58412e0ba3c..596b0374b95 100644
--- a/src/vnet/session-apps/proxy.c
+++ b/src/vnet/session-apps/proxy.c
@@ -105,9 +105,9 @@ delete_proxy_session (stream_session_t * s, int is_active_open)
else if (!pool_is_free_index (pm->sessions, p[0]))
{
ps = pool_elt_at_index (pm->sessions, p[0]);
- if (ps->vpp_server_handle != ~0)
+ if (ps->vpp_active_open_handle != ~0)
active_open_session = session_get_from_handle
- (ps->vpp_server_handle);
+ (ps->vpp_active_open_handle);
else
active_open_session = 0;
}