summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session/session.c')
-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;
}