From 63225d5f8ef64cc65164c0bb1800730842d54942 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 6 Jan 2026 16:15:09 -0600 Subject: [PATCH] dnp3: check done state, not complete state for progress Complete is a flag used to tell if the message was completely parsed, as not all messages may be completely parsed if we don't know all their objects. However, they are still "done". In the alstate-progress callback, check the done flag, not the complete flag. Ticket: #8181 (cherry picked from commit d61eef9a8a0d92921989479de15e5cbfec3251a9) --- src/app-layer-dnp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-dnp3.c b/src/app-layer-dnp3.c index ecae4ae631..1a8b3cb630 100644 --- a/src/app-layer-dnp3.c +++ b/src/app-layer-dnp3.c @@ -1438,7 +1438,7 @@ static int DNP3GetAlstateProgress(void *tx, uint8_t direction) SCReturnInt(1); } - if (dnp3tx->complete) + if (dnp3tx->done) retval = 1; SCReturnInt(retval);