]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Add NULL-terminator to app-layer template (fix #1930) 2815/head
authorPierre Chifflier <chifflier@wzdftpd.net>
Sun, 23 Oct 2016 15:20:25 +0000 (17:20 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 28 Jun 2017 10:45:10 +0000 (12:45 +0200)
src/app-layer-template.c

index a0f6cb9a865e2d47d9c6aa642b2d7aa622468d35..554faf90ef1eb549d9ccddc889fb5ec5cf98754c 100644 (file)
@@ -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)