From e41c28f7c93c5a447b82abc7f93f1187ede92a43 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 --- 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 b8634abcee..4d9459da5f 100644 --- a/src/app-layer-dnp3.c +++ b/src/app-layer-dnp3.c @@ -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; -- 2.47.2