aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-06-01 09:11:27 -0700
committerAndrew Yourtchenko <ayourtch@gmail.com>2023-06-05 14:05:29 +0000
commit1a67c82c843b41d61bd50298597a119ac13174ab (patch)
tree7dc1ff987f3a45140d6796ff58cb0c69765f5954 /src
parent95f95670982f1ab056e45047eb0b78cf682df73f (diff)
session: cleanup cless listeners from session lookup
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I46b8194ff00c6a0a4a2bc19df9991f037856cede (cherry picked from commit 645ac119e8f2602454050f5da6cafc4a22def7ff)
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 1b9f9de2a1b..a07082b766c 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1524,7 +1524,14 @@ session_stop_listen (session_t * s)
return SESSION_E_NONE;
if (!(tc->flags & TRANSPORT_CONNECTION_F_NO_LOOKUP))
- session_lookup_del_connection (tc);
+ {
+ if (transport_connection_is_cless (tc))
+ {
+ clib_memset (&tc->rmt_ip, 0, sizeof (tc->rmt_ip));
+ tc->rmt_port = 0;
+ }
+ session_lookup_del_connection (tc);
+ }
transport_stop_listen (tp, s->connection_index);
return 0;