]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ftp: mark tx as updated when creating it
authorPhilippe Antoine <pantoine@oisf.net>
Sat, 19 Apr 2025 19:27:01 +0000 (21:27 +0200)
committerPhilippe Antoine <pantoine@oisf.net>
Mon, 21 Apr 2025 19:27:07 +0000 (21:27 +0200)
Ticket: 7668

We should set updated_tx when allocating a ftp tx

Was already done right for updated_tc

(cherry picked from commit f24d3ffb74055b1bd1bc6eed0feeb0261a5cad78)

src/app-layer-ftp.c

index 9ee93989d29e7b5b418bb939eb8fac2289cc1961..a2afd91ed176f0fd249d1b1f18391a83bc120e2b 100644 (file)
@@ -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;