Skip to content

Commit c333b28

Browse files
catenacybervictorjulien
authored andcommitted
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
1 parent 54cc752 commit c333b28

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/app-layer-htp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ static void HTPSetEvent(HtpState *s, HtpTxUserData *htud,
441441
if (tx != NULL) {
442442
htud = (HtpTxUserData *)htp_tx_get_user_data(tx);
443443
SCAppLayerDecoderEventsSetEventRaw(&htud->tx_data.events, e);
444+
if (dir & STREAM_TOCLIENT)
445+
htud->tx_data.updated_tc = true;
446+
if (dir & STREAM_TOSERVER)
447+
htud->tx_data.updated_ts = true;
444448
s->events++;
445449
return;
446450
}

0 commit comments

Comments
 (0)