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 c333b28719)
pull/14719/head
Philippe Antoine 3 months ago committed by Victor Julien
parent 96f7549a18
commit 6c63400d65

@ -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;
}

Loading…
Cancel
Save