session: deleting an application namespace cleaning up the wrong application 54/41254/2
authorSteven Luong <[email protected]>
Wed, 10 Jul 2024 17:31:56 +0000 (10:31 -0700)
committersteven luong <[email protected]>
Wed, 10 Jul 2024 17:39:10 +0000 (17:39 +0000)
commit3f75010dfb9c1237018450aa874967c839a76f4f
tree1c561ec3e989d4b4ff31963bcb5a44ffa343b7fc
parente0e85134ad5c26603be9ef09474f2332609ef799
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 <[email protected]>
src/vnet/session/application.c