Wrong scope of proto_logged variable could potentially lead to
incrementing logged tx id w/o actually being logged.
Reported-By: Jason Ish
int tx_progress_done_value_tc =
AppLayerParserGetStateProgressCompletionStatus(p->proto, alproto,
STREAM_TOCLIENT);
- int proto_logged = 0;
-
for (; tx_id < total_txs; tx_id++)
{
+ int proto_logged = 0;
+
void *tx = AppLayerParserGetTx(p->proto, alproto, alstate, tx_id);
if (tx == NULL) {
SCLogDebug("tx is NULL not logging");