summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-07-24 10:09:07 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 19:47:21 +0000
commit27901c99528fa9d067f79dc2274e5b776dccee86 (patch)
treea31cd92ff1cac725226f57bda727493da62fdeeb
parentcafaac98e7424b649f34da78620a77ef0653c08b (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 (cherry picked from commit c7fd24e30bb5ac68f3c82eafee9dc192289add7f)
-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 0e4651a0ebd..ec3c9cbde15 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -750,8 +750,11 @@ session_stream_connect_notify_inline (transport_connection_t * tc, u8 is_fail,
if (app_worker_connect_notify (app_wrk, s, 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;
}