From f232fdc0c986c01d020ab15d2c663e384a6ec0d0 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 14 Jul 2014 14:46:07 +0200 Subject: [PATCH] htp: init memuse atomics In case of the spinlocked fallback code the lock was uninitialized. --- src/app-layer-htp-mem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app-layer-htp-mem.c b/src/app-layer-htp-mem.c index 39a4f4e19c..8d5e9f0e8b 100644 --- a/src/app-layer-htp-mem.c +++ b/src/app-layer-htp-mem.c @@ -61,6 +61,9 @@ void HTPParseMemcap() /* default to unlimited */ htp_config_memcap = 0; } + + SC_ATOMIC_INIT(htp_memuse); + SC_ATOMIC_INIT(htp_memcap); } void HTPIncrMemuse(uint64_t size)