From: Philippe Antoine Date: Sat, 19 Apr 2025 19:28:16 +0000 (+0200) Subject: dnp3: mark tx as updated when creating it X-Git-Tag: suricata-7.0.11~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e23aa06196e25122b5211a1683d60aee69137083;p=thirdparty%2Fsuricata.git 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) --- 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;