From: Victor Julien Date: Wed, 29 Jan 2020 12:28:17 +0000 (+0100) Subject: htp: fix globals use for flags X-Git-Tag: suricata-6.0.0-beta1~757 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ae1854d2fc28c185c2d66a8c98d1049c92e1289;p=thirdparty%2Fsuricata.git htp: fix globals use for flags --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 67da98189f..3293a74e8a 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -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; diff --git a/src/app-layer-htp.h b/src/app-layer-htp.h index cdb6e99551..b83b8c914d 100644 --- a/src/app-layer-htp.h +++ b/src/app-layer-htp.h @@ -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);