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
pull/14639/head
Philippe Antoine 3 months ago committed by Victor Julien
parent 54cc752cf9
commit c333b28719

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

Loading…
Cancel
Save