]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dnp3: mark tx as updated when creating it 13054/head
authorPhilippe Antoine <pantoine@oisf.net>
Sat, 19 Apr 2025 19:28:16 +0000 (21:28 +0200)
committerVictor Julien <victor@inliniac.net>
Sun, 20 Apr 2025 02:49:43 +0000 (04:49 +0200)
Ticket: 7668

We should set updated_tx when allocating a dnp3 tx

src/app-layer-dnp3.c

index b8634abcee3f88c62a0a2b8404338a6ec74c0724..4d9459da5f2b541dae631691364f79e85989e230 100644 (file)
@@ -898,6 +898,7 @@ static void DNP3HandleUserDataRequest(DNP3State *dnp3, const uint8_t *input,
         if (unlikely(tx == NULL)) {
             return;
         }
+        tx->tx_data.updated_ts = true;
         tx->lh = *lh;
         tx->th = th;
         tx->ah = *ah;
@@ -971,6 +972,7 @@ static void DNP3HandleUserDataResponse(DNP3State *dnp3, const uint8_t *input,
         if (unlikely(tx == NULL)) {
             return;
         }
+        tx->tx_data.updated_tc = true;
         tx->lh = *lh;
         tx->th = th;
         tx->ah = *ah;