diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-07-18 18:38:42 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-10-01 21:57:09 +0000 |
commit | d4aeb84c3f066b755b723163da292eab95bd1ef9 (patch) | |
tree | 0be8fb435d76665377cb1248271c8df78d309b10 /src/vnet/session/application_worker.c | |
parent | b5a2f7056967630c2834b0b4bf03520d96806c3e (diff) |
session: fix use-after-free
Make sure to reinitialize data before free-ing it.
Type: fix
Change-Id: I45727c456d0345204d4825ecdd9690c5ebeb5e94
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/session/application_worker.c')
-rw-r--r-- | src/vnet/session/application_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index 30edf3c32cc..c45679735b9 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -109,9 +109,9 @@ app_worker_free (app_worker_t * app_wrk) segment_manager_free (sm); } - pool_put (app_workers, app_wrk); if (CLIB_DEBUG) clib_memset (app_wrk, 0xfe, sizeof (*app_wrk)); + pool_put (app_workers, app_wrk); } application_t * |