diff options
author | Florin Coras <fcoras@cisco.com> | 2021-06-02 21:32:39 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-06-03 14:25:17 +0000 |
commit | 821b5002bf5cd18e1ec7750ff1b6fb379b241869 (patch) | |
tree | e8c90aa8779c21cadc0bd6f83652b3d64ef2d079 /src/vnet/session/application_local.c | |
parent | 67c90a32b7ad0c5a38c483ce849cc7a231e7ba54 (diff) |
session: avoid ct connects loop
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I99af136ecab9be1f9e00de6d197b8f1c74ab4b20
Diffstat (limited to 'src/vnet/session/application_local.c')
-rw-r--r-- | src/vnet/session/application_local.c | 3 |
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 */ |