From fabb2bf29df11396f3b79afb2f15e501d420671c Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Wed, 5 Mar 2025 09:06:59 -0500 Subject: [PATCH] http_static: hss_ts_rx_callback fix reset hs->data_len before handling new request Type: fix Change-Id: I5b02f8ec418c56e8ec607c5bc5c8716d53e5376f Signed-off-by: Matus Fabian --- src/plugins/http_static/static_server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index fb0878c7a7e..9d416dab558 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -510,6 +510,7 @@ hss_ts_rx_callback (session_t *ts) if (hs->free_data) vec_free (hs->data); hs->data = 0; + hs->data_len = 0; http_init_headers_ctx (&hs->resp_headers, hs->headers_buf, vec_len (hs->headers_buf)); -- 2.16.6