From 6c63400d6517965ea1e9af7ca238edf1b164c59a 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 (cherry picked from commit c333b28719b1efdb8186cf5319e0f4d74c7abdd8) --- 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 02d1fed210..080ef3a784 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -326,6 +326,10 @@ static void HTPSetEvent(HtpState *s, HtpTxUserData *htud, htud = (HtpTxUserData *) htp_tx_get_user_data(tx); if (htud != NULL) { AppLayerDecoderEventsSetEventRaw(&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; }