Skip to content

Commit 6c878c0

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 (cherry picked from commit c333b28)
1 parent 96f7549 commit 6c878c0

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
@@ -326,6 +326,10 @@ static void HTPSetEvent(HtpState *s, HtpTxUserData *htud,
326326
htud = (HtpTxUserData *) htp_tx_get_user_data(tx);
327327
if (htud != NULL) {
328328
AppLayerDecoderEventsSetEventRaw(&htud->tx_data.events, e);
329+
if (dir & STREAM_TOCLIENT)
330+
htud->tx_data.updated_tc = true;
331+
if (dir & STREAM_TOSERVER)
332+
htud->tx_data.updated_ts = true;
329333
s->events++;
330334
return;
331335
}

0 commit comments

Comments
 (0)