diff options
Diffstat (limited to 'framework/src/suricata/src/detect-template-buffer.c')
-rw-r--r-- | framework/src/suricata/src/detect-template-buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/src/suricata/src/detect-template-buffer.c b/framework/src/suricata/src/detect-template-buffer.c index 64f948c2..d9f9aa67 100644 --- a/framework/src/suricata/src/detect-template-buffer.c +++ b/framework/src/suricata/src/detect-template-buffer.c @@ -21,6 +21,7 @@ */ #include "suricata-common.h" +#include "conf.h" #include "detect.h" #include "app-layer-template.h" @@ -29,6 +30,10 @@ static void DetectTemplateBufferRegisterTests(void); void DetectTemplateBufferRegister(void) { + if (ConfGetNode("app-layer.protocols.template") == NULL) { + return; + } + sigmatch_table[DETECT_AL_TEMPLATE_BUFFER].name = "template_buffer"; sigmatch_table[DETECT_AL_TEMPLATE_BUFFER].desc = "Template content modififier to match on the template buffers"; |