From: Victor Julien Date: Mon, 29 Jan 2018 15:45:33 +0000 (+0100) Subject: htp: minor debug addition X-Git-Tag: suricata-4.1.0-beta1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f339abdf01f972d213d1c9e76ff3d427e1eb183;p=thirdparty%2Fsuricata.git htp: minor debug addition --- 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)