aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-06-02 21:32:39 -0700
committerDave Barach <openvpp@barachs.net>2021-06-03 14:25:17 +0000
commit821b5002bf5cd18e1ec7750ff1b6fb379b241869 (patch)
treee8c90aa8779c21cadc0bd6f83652b3d64ef2d079 /src/vnet
parent67c90a32b7ad0c5a38c483ce849cc7a231e7ba54 (diff)
session: avoid ct connects loop
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I99af136ecab9be1f9e00de6d197b8f1c74ab4b20
Diffstat (limited to 'src/vnet')
-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 */