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