detect: use next tx info from iterator

In non-sequential transaction handling, the is_last set could be
incorrect.

(cherry picked from commit ee1b9b9212)
pull/15813/head
Victor Julien 4 months ago
parent 1f1db89636
commit a6d97b7c69

@ -2299,7 +2299,7 @@ static void DetectRunTx(ThreadVars *tv,
tx_id_min++; // next (if any) run look for +1
goto next;
}
tx.is_last = (total_txs == tx.tx_id + 1);
tx.is_last = !ires.has_next;
tx_id_min = tx.tx_id + 1; // next look for cur + 1
tx_inspected++;

Loading…
Cancel
Save