diff options
author | Steven Luong <sluong@cisco.com> | 2024-06-28 12:27:50 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-07-02 08:44:07 +0000 |
commit | b8a227363c875c8a4612b3cc82d20a28c4582af3 (patch) | |
tree | 35b810fe33d857afa024cb62a047c9526b81fd79 /src/vnet/session | |
parent | 1b8cef111b694dc4e84673aa73a13b050ae6dc80 (diff) |
session: session disable crash if not enable
If session is not enable, type in the CLI session disable cause VPP to crash.
Type: fix
Change-Id: Ib55b7430b7ce521a40025d58fa18b765f5129fd5
Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 2ca867c166f..5897693c34e 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1869,7 +1869,8 @@ session_register_update_time_fn (session_update_time_fn fn, u8 is_add) } else { - vec_del1 (smm->update_time_fns, fi_pos); + if (found) + vec_del1 (smm->update_time_fns, fi_pos); } } |