From 47eba331104c573605ff4198e97f327b32b8aa2a Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 22 Jan 2020 09:30:26 +0100 Subject: [PATCH] init: make PostConfLoadedSetup global to be used by fuzz targets --- src/suricata.c | 2 +- src/suricata.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2