From 6f339abdf01f972d213d1c9e76ff3d427e1eb183 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 29 Jan 2018 16:45:33 +0100 Subject: [PATCH] htp: minor debug addition --- src/app-layer-htp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index ec8cf98fd6..1b4f68b7d1 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -2616,10 +2616,13 @@ static uint64_t HTPStateGetTxCnt(void *alstate) { HtpState *http_state = (HtpState *)alstate; - if (http_state != NULL && http_state->conn != NULL) - return (uint64_t)htp_list_size(http_state->conn->transactions); - else + if (http_state != NULL && http_state->conn != NULL) { + const uint64_t size = (uint64_t)htp_list_size(http_state->conn->transactions); + SCLogDebug("size %"PRIu64, size); + return size; + } else { return 0ULL; + } } static void *HTPStateGetTx(void *alstate, uint64_t tx_id) -- 2.47.2