summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-07-24 10:09:07 -0700
committerDave Wallace <dwallacelf@gmail.com>2020-07-24 21:11:43 +0000
commitc7fd24e30bb5ac68f3c82eafee9dc192289add7f (patch)
tree47f36827f4fdf5d8bc7024171fabfb3859c038c4 /src
parentd2f5174dd045da53395939cd55a0f6e2821f6dcf (diff)
session: cleanup lookup table for rejected session
Type: fix Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com> Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id20f693a5acdee74ab534e9964418973537b977f
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 0956b2f9d73..70b9dc49cf3 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -812,8 +812,11 @@ session_stream_connect_notify (transport_connection_t * tc,
if (app_worker_connect_notify (app_wrk, s, SESSION_E_NONE, opaque))
{
+ session_lookup_del_connection (tc);
+ /* Avoid notifying app about rejected session cleanup */
s = session_get (new_si, new_ti);
- session_free_w_fifos (s);
+ segment_manager_dealloc_fifos (s->rx_fifo, s->tx_fifo);
+ session_free (s);
return -1;
}