summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-04-05 16:35:39 -0700
committerDave Barach <openvpp@barachs.net>2022-11-11 18:01:31 +0000
commit6af9330c637d4e1379f17b0a4f325c4d82aa9b6c (patch)
tree784d2b8d22b034595306448e82f11fd5bc20909e
parentec315bf7b4e622b6a6cd059ac7ca7f5495e3c11b (diff)
http: use safe pool realloc
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I572017433a1ba0f8576522f02138928e303e10ab
-rw-r--r--src/plugins/http/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 752ca47a691..048b403cd74 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -59,7 +59,8 @@ http_conn_alloc_w_thread (u32 thread_index)
http_worker_t *wrk = http_worker_get (thread_index);
http_conn_t *hc;
- pool_get_zero (wrk->conn_pool, hc);
+ pool_get_aligned_safe (wrk->conn_pool, hc, CLIB_CACHE_LINE_BYTES);
+ clib_memset (hc, 0, sizeof (*hc));
hc->c_thread_index = thread_index;
hc->h_hc_index = hc - wrk->conn_pool;
hc->h_pa_session_handle = SESSION_INVALID_HANDLE;