diff options
author | Steven Luong <sluong@cisco.com> | 2024-07-10 10:31:56 -0700 |
---|---|---|
committer | steven luong <sluong@cisco.com> | 2024-07-10 17:39:10 +0000 |
commit | 3f75010dfb9c1237018450aa874967c839a76f4f (patch) | |
tree | 1c561ec3e989d4b4ff31963bcb5a44ffa343b7fc | |
parent | e0e85134ad5c26603be9ef09474f2332609ef799 (diff) |
session: deleting an application namespace cleaning up the wrong application
We call application_namespace_cleanup to remove the application which
has a reference to the application namespace when deleting an application
namespace. When we find the matching application namespace, we queue
the ns_index instead of app_index to look for the application.
This may lead to a crash.
Type: fix
Change-Id: I89c7f8d1681b4c7c1bcb16641217230a26dbe582
Signed-off-by: Steven Luong <sluong@cisco.com>
-rw-r--r-- | src/vnet/session/application.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c index c66548507e5..7c63ada2774 100644 --- a/src/vnet/session/application.c +++ b/src/vnet/session/application.c @@ -968,7 +968,7 @@ application_namespace_cleanup (app_namespace_t *app_ns) ns_index = app_namespace_index (app_ns); pool_foreach (app, app_main.app_pool) if (app->ns_index == ns_index) - vec_add1 (app_indices, app->ns_index); + vec_add1 (app_indices, app->app_index); vec_foreach (app_index, app_indices) { |