aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/src/output-json-template.c
diff options
context:
space:
mode:
authorAshlee Young <ashlee@wildernessvoice.com>2015-11-24 23:17:00 -0800
committerAshlee Young <ashlee@wildernessvoice.com>2015-11-24 23:17:00 -0800
commit43f0d5031db2a43ecdbee6f7dfda75cef6d4f56e (patch)
treef73f4185f5fe44cc44b823cb6137542be7edc9ef /framework/src/suricata/src/output-json-template.c
parent77ce3be7567bd01c66d8ee88a93b485666723501 (diff)
Added apache 2 license verbage
Change-Id: I6a0b484496f7f3ba77c3584f5ab5a1acf353b298 Signed-off-by: Ashlee Young <ashlee@wildernessvoice.com>
Diffstat (limited to 'framework/src/suricata/src/output-json-template.c')
-rw-r--r--framework/src/suricata/src/output-json-template.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/src/suricata/src/output-json-template.c b/framework/src/suricata/src/output-json-template.c
index ca4a9378..d360e674 100644
--- a/framework/src/suricata/src/output-json-template.c
+++ b/framework/src/suricata/src/output-json-template.c
@@ -180,6 +180,10 @@ static TmEcode JsonTemplateLogThreadDeinit(ThreadVars *t, void *data)
void TmModuleJsonTemplateLogRegister(void)
{
+ if (ConfGetNode("app-layer.protocols.template") == NULL) {
+ return;
+ }
+
tmm_modules[TMM_JSONTEMPLATELOG].name = "JsonTemplateLog";
tmm_modules[TMM_JSONTEMPLATELOG].ThreadInit = JsonTemplateLogThreadInit;
tmm_modules[TMM_JSONTEMPLATELOG].ThreadDeinit = JsonTemplateLogThreadDeinit;