From: Matus Fabian Date: Wed, 5 Mar 2025 14:06:59 +0000 (-0500) Subject: http_static: hss_ts_rx_callback fix X-Git-Tag: v25.10-rc0~171 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F42454%2F1;p=vpp.git 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 --- 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));