diff options
author | Florin Coras <fcoras@cisco.com> | 2021-12-03 23:02:13 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-12-06 16:37:35 +0000 |
commit | 674d5651e2089254c449eba922c784097a1dd070 (patch) | |
tree | 6cb20b4a1b3583c5c6e48e7b0b1148f9509b8bf1 /src/vcl/vcl_locked.c | |
parent | 68843d1b6ce52315f8a3567537a3cb246c1ecf40 (diff) |
vcl: fix ldp shared listener bitmap leak
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Id1e273bf80c1cc687ce7e5ea3b8cc6a3ec3862f9
Diffstat (limited to 'src/vcl/vcl_locked.c')
-rw-r--r-- | src/vcl/vcl_locked.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vcl_locked.c b/src/vcl/vcl_locked.c index 6027fd19c15..5ec553e2c8b 100644 --- a/src/vcl/vcl_locked.c +++ b/src/vcl/vcl_locked.c @@ -619,7 +619,8 @@ vls_listener_wrk_set (vcl_locked_session_t * vls, u32 wrk_index, u8 is_active) vls_shd = vls_shared_data_get (vls->shared_data_index); clib_spinlock_lock (&vls_shd->lock); - clib_bitmap_set (vls_shd->listeners, wrk_index, is_active); + vls_shd->listeners = + clib_bitmap_set (vls_shd->listeners, wrk_index, is_active); clib_spinlock_unlock (&vls_shd->lock); vls_shared_data_pool_runlock (); |