diff options
author | jiangxiaoming <jiangxiaoming@outlook.com> | 2020-12-17 10:35:16 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-12-17 03:42:58 +0000 |
commit | 5f9a5c70edd11e90a27a795d953e06606424d4de (patch) | |
tree | fe02d100b1ffae535c3829fc256ba25b85bcff6e /src/plugins | |
parent | 88405809613b8255174e6c5fe257cfaec5af1e27 (diff) |
hsa: http server: memset after pool_put will cause ASAN issue
Type: fix
Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
Change-Id: I3783f72ff93c362589e859f389d94eadd2aadddb
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/hs_apps/http_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/hs_apps/http_server.c b/src/plugins/hs_apps/http_server.c index a93261f0b04..ce4e09addbc 100644 --- a/src/plugins/hs_apps/http_server.c +++ b/src/plugins/hs_apps/http_server.c @@ -136,9 +136,10 @@ static void http_server_session_free (http_session_t * hs) { http_server_main_t *hsm = &http_server_main; - pool_put (hsm->sessions[hs->thread_index], hs); + u32 thread = hs->thread_index; if (CLIB_DEBUG) memset (hs, 0xfa, sizeof (*hs)); + pool_put (hsm->sessions[thread], hs); } static void |