From: Philippe Antoine Date: Sat, 19 Apr 2025 19:27:01 +0000 (+0200) Subject: ftp: mark tx as updated when creating it X-Git-Tag: suricata-7.0.11~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=529bec83b2248fb5b5db78df220e513b255f42fe;p=thirdparty%2Fsuricata.git ftp: mark tx as updated when creating it Ticket: 7668 We should set updated_tx when allocating a ftp tx Was already done right for updated_tc (cherry picked from commit f24d3ffb74055b1bd1bc6eed0feeb0261a5cad78) --- diff --git a/src/app-layer-ftp.c b/src/app-layer-ftp.c index 9ee93989d2..a2afd91ed1 100644 --- a/src/app-layer-ftp.c +++ b/src/app-layer-ftp.c @@ -528,6 +528,7 @@ static AppLayerResult FTPParseRequest(Flow *f, void *ftp_state, AppLayerParserSt FTPTransaction *tx = FTPTransactionCreate(state); if (unlikely(tx == NULL)) SCReturnStruct(APP_LAYER_ERROR); + tx->tx_data.updated_ts = true; state->curr_tx = tx; tx->command_descriptor = cmd_descriptor;