From: Florin Coras Date: Mon, 14 May 2018 08:44:01 +0000 (-0700) Subject: proxy: fix active open connection cleanup X-Git-Tag: v18.07-rc1~340 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=70816f0cca308ce3cbf98cdbdb14e02550362b9f;p=vpp.git proxy: fix active open connection cleanup Thanks to DucTM for spotting the issue. Change-Id: I7985560f224c99cf0fdeea0c8457a3ac6f10b03c Signed-off-by: Florin Coras --- 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; }