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

We should set updated_tx when allocating a dnp3 tx

(cherry picked from commit e41c28f7c93c5a447b82abc7f93f1187ede92a43)

src/app-layer-dnp3.c

index 26422cb18021ab4a9f0bae4e601adc5577c117f6..ecae4ae631f0c36741ee409013e86f11dd2c8f03 100644 (file)
@@ -910,6 +910,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;
@@ -983,6 +984,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;