]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: fix globals use for flags
authorVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2020 12:28:17 +0000 (13:28 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 11 Feb 2020 19:38:50 +0000 (20:38 +0100)
src/app-layer-htp.c
src/app-layer-htp.h

index 67da98189ff1e148637744bc012e122b06ed3fe5..3293a74e8aae2e75fe1841a099bb0d34c590d77f 100644 (file)
@@ -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;
index cdb6e99551a2351dc637f5e81dcc8f477c78ae2d..b83b8c914da508fe5c137c77d3cabb4b842a1bb0 100644 (file)
@@ -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);