From e23aa06196e25122b5211a1683d60aee69137083 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Sat, 19 Apr 2025 21:28:16 +0200 Subject: [PATCH] dnp3: mark tx as updated when creating it Ticket: 7668 We should set updated_tx when allocating a dnp3 tx (cherry picked from commit e41c28f7c93c5a447b82abc7f93f1187ede92a43) --- src/app-layer-dnp3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app-layer-dnp3.c b/src/app-layer-dnp3.c index 26422cb180..ecae4ae631 100644 --- a/src/app-layer-dnp3.c +++ b/src/app-layer-dnp3.c @@ -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; -- 2.47.2