From 08e4908dbefca24a0d640ec97cd08c5f54b15dd7 Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Sun, 23 Oct 2016 17:20:25 +0200 Subject: [PATCH] Add NULL-terminator to app-layer template (fix #1930) --- src/app-layer-template.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app-layer-template.c b/src/app-layer-template.c index a0f6cb9a86..554faf90ef 100644 --- a/src/app-layer-template.c +++ b/src/app-layer-template.c @@ -68,6 +68,9 @@ enum { SCEnumCharMap template_decoder_event_table[] = { {"EMPTY_MESSAGE", TEMPLATE_DECODER_EVENT_EMPTY_MESSAGE}, + + // event table must be NULL-terminated + { NULL, -1 }, }; static TemplateTransaction *TemplateTxAlloc(TemplateState *echo)