htp: fix globals use for flags

pull/4537/head
Victor Julien 6 years ago
parent 85289f3283
commit 3ae1854d2f

@ -87,6 +87,8 @@ static SCRadixTree *cfgtree;
/** List of HTP configurations. */
static HTPCfgRec cfglist;
SC_ATOMIC_DECLARE(uint32_t, htp_config_flags);
#ifdef DEBUG
static SCMutex htp_state_mem_lock = SCMUTEX_INITIALIZER;
static uint64_t htp_state_memuse = 0;

@ -271,7 +271,7 @@ typedef struct HtpState_ {
/** part of the engine needs the request body (e.g. file_data keyword) */
#define HTP_REQUIRE_RESPONSE_BODY (1 << 3)
SC_ATOMIC_DECLARE(uint32_t, htp_config_flags);
SC_ATOMIC_EXTERN(uint32_t, htp_config_flags);
void RegisterHTPParsers(void);
void HTPParserRegisterTests(void);

Loading…
Cancel
Save