htp: init memuse atomics

In case of the spinlocked fallback code the lock was uninitialized.
pull/1034/head
Victor Julien 11 years ago
parent f06e5f3c73
commit f232fdc0c9

@ -61,6 +61,9 @@ void HTPParseMemcap()
/* default to unlimited */ /* default to unlimited */
htp_config_memcap = 0; htp_config_memcap = 0;
} }
SC_ATOMIC_INIT(htp_memuse);
SC_ATOMIC_INIT(htp_memcap);
} }
void HTPIncrMemuse(uint64_t size) void HTPIncrMemuse(uint64_t size)

Loading…
Cancel
Save