From: Philippe Antoine Date: Sat, 19 Apr 2025 19:21:31 +0000 (+0200) Subject: http1: always mark tx as updated on request/response start X-Git-Tag: suricata-7.0.11~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9540668128ab8120ae75c2b366c346708edfc31;p=thirdparty%2Fsuricata.git http1: always mark tx as updated on request/response start Ticket: 7668 We should set updated_tx when allocating HtpTxUserData (cherry picked from commit a5b987266b2180e074d8fe5cf444739d9a5bdc91) --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 6df6c3270f..51754e8015 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -2168,9 +2168,8 @@ static int HTPCallbackRequestStart(htp_tx_t *tx) } tx_ud->tx_data.file_tx = STREAM_TOSERVER | STREAM_TOCLIENT; // each http tx may xfer files htp_tx_set_user_data(tx, tx_ud); - } else { - tx_ud->tx_data.updated_ts = true; } + tx_ud->tx_data.updated_ts = true; SCReturnInt(HTP_OK); } @@ -2210,9 +2209,8 @@ static int HTPCallbackResponseStart(htp_tx_t *tx) tx_ud->tx_data.file_tx = STREAM_TOCLIENT; // each http tx may xfer files. Toserver already missed. htp_tx_set_user_data(tx, tx_ud); - } else { - tx_ud->tx_data.updated_tc = true; } + tx_ud->tx_data.updated_tc = true; SCReturnInt(HTP_OK); }