From: Philippe Antoine Date: Wed, 22 Jan 2020 08:30:26 +0000 (+0100) Subject: init: make PostConfLoadedSetup global X-Git-Tag: suricata-6.0.0-beta1~746 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47eba331104c573605ff4198e97f327b32b8aa2a;p=thirdparty%2Fsuricata.git init: make PostConfLoadedSetup global to be used by fuzz targets --- diff --git a/src/suricata.c b/src/suricata.c index 5d3e0555f5..954330e478 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -2702,7 +2702,7 @@ static void SetupUserMode(SCInstance *suri) * This function is meant to contain code that needs * to be run once the configuration has been loaded. */ -static int PostConfLoadedSetup(SCInstance *suri) +int PostConfLoadedSetup(SCInstance *suri) { /* do this as early as possible #1577 #1955 */ #ifdef HAVE_LUAJIT diff --git a/src/suricata.h b/src/suricata.h index f90b17ae77..f61d6c89ad 100644 --- a/src/suricata.h +++ b/src/suricata.h @@ -189,6 +189,7 @@ int SuriHasSigFile(void); extern int run_mode; int InitGlobal(void); +int PostConfLoadedSetup(SCInstance *suri); void PreRunInit(const int runmode); void PreRunPostPrivsDropInit(const int runmode);