From 367ca7f430f85be01a6cdc65ddaa1636a50ddefc Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 15 May 2026 21:49:19 +0200 Subject: [PATCH] detect/tx: minor debug additions and fixes --- src/detect.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/detect.c b/src/detect.c index d358431026..c507cf623d 100644 --- a/src/detect.c +++ b/src/detect.c @@ -2051,11 +2051,14 @@ static void DetectRunTx(ThreadVars *tv, const bool have_fw_rules = EngineModeIsFirewall(); SCLogDebug("packet %" PRIu64, PcapPacketCntGet(p)); + SCLogDebug("total_txs %" PRIu64, total_txs); while (1) { AppLayerGetTxIterTuple ires = IterFunc(ipproto, alproto, alstate, tx_id_min, total_txs, &state); - if (ires.tx_ptr == NULL) + if (ires.tx_ptr == NULL) { + SCLogDebug("%p/%" PRIu64 " no transaction to inspect", ires.tx_ptr, tx_id_min); break; + } DetectTransaction tx = GetDetectTx(ipproto, alproto, ires.tx_id, ires.tx_ptr, tx_end_state, flow_flags); @@ -2070,7 +2073,7 @@ static void DetectRunTx(ThreadVars *tv, tx_inspected++; const bool last_tx = (total_txs == tx.tx_id + 1); - SCLogDebug("%p/%" PRIu64 " txd flags %02x", tx.tx_ptr, tx_id_min, tx.tx_data_ptr->flags); + SCLogDebug("%p/%" PRIu64 " txd flags %02x", tx.tx_ptr, tx.tx_id, tx.tx_data_ptr->flags); det_ctx->tx_id = tx.tx_id; det_ctx->tx_id_set = true;