]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: minor debug addition
authorVictor Julien <victor@inliniac.net>
Mon, 29 Jan 2018 15:45:33 +0000 (16:45 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2018 13:43:51 +0000 (14:43 +0100)
src/app-layer-htp.c

index ec8cf98fd6c4a293feaf4827270724ce6d70b198..1b4f68b7d1d9646abb628d8aad830316c1545bde 100644 (file)
@@ -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)