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
pull/14601/head
Jason Ish 4 months ago committed by Victor Julien
parent fa5a4a994a
commit d61eef9a8a

@ -1426,7 +1426,7 @@ static int DNP3GetAlstateProgress(void *tx, uint8_t direction)
SCReturnInt(1);
}
if (dnp3tx->complete)
if (dnp3tx->done)
retval = 1;
SCReturnInt(retval);

Loading…
Cancel
Save