From c333b28719b1efdb8186cf5319e0f4d74c7abdd8 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 16 Jan 2026 14:48:33 +0100 Subject: [PATCH] http1: marks tx as updated when setting an event Ticket: 8224 We sometimes set events to the last tx, so we do not have access to the HtpTxUserData in the caller HTPHandleError --- src/app-layer-htp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 3c4c45a761..22d3023e58 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -441,6 +441,10 @@ static void HTPSetEvent(HtpState *s, HtpTxUserData *htud, if (tx != NULL) { htud = (HtpTxUserData *)htp_tx_get_user_data(tx); SCAppLayerDecoderEventsSetEventRaw(&htud->tx_data.events, e); + if (dir & STREAM_TOCLIENT) + htud->tx_data.updated_tc = true; + if (dir & STREAM_TOSERVER) + htud->tx_data.updated_ts = true; s->events++; return; }