aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;