From: Pierre Chifflier Date: Sun, 23 Oct 2016 15:20:25 +0000 (+0200) Subject: Add NULL-terminator to app-layer template (fix #1930) X-Git-Tag: suricata-4.0.0-rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e4908dbefca24a0d640ec97cd08c5f54b15dd7;p=thirdparty%2Fsuricata.git Add NULL-terminator to app-layer template (fix #1930) --- 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)