aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-06-02 21:32:39 -0700
committerDave Wallace <dwallacelf@gmail.com>2021-06-03 19:11:06 +0000
commit5b6d2c1ae26addadc8ab44eaadcf88ebf95a4fd0 (patch)
treeb1148af70ace1cd639eabfbb60e8763c9586359b /src
parentd5f89e04ae1154a6945923c06b328bca57e44865 (diff)
session: avoid ct connects loop
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I99af136ecab9be1f9e00de6d197b8f1c74ab4b20 (cherry picked from commit 821b5002bf5cd18e1ec7750ff1b6fb379b241869)
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/application_local.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index 6a02f23be85..2152738cff0 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -535,7 +535,8 @@ global_scope:
table_index = session_lookup_get_index_for_fib (fib_proto, sep->fib_index);
ll = session_lookup_listener_wildcard (table_index, sep);
- if (ll)
+ /* Avoid connecting app to own listener */
+ if (ll && ll->app_index != app->app_index)
return ct_connect (app_wrk, ll, sep_ext);
/* Failed to connect but no error */