]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-zephyr.c
CVE-2017-12900/Properly terminate all struct tok arrays.
[tcpdump] / print-zephyr.c
index 71ca9e3e5f6aa52751ad979bd25dfe7613662451..eb7e382bc54491b50026dad383b4f58ee87ea6ce 100644 (file)
@@ -20,6 +20,8 @@
  * PURPOSE.
  */
 
+/* \summary: Zephyr printer */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -74,7 +76,8 @@ static const struct tok z_types[] = {
     { Z_PACKET_SERVACK,                "serv-ack" },
     { Z_PACKET_SERVNAK,                "serv-nak" },
     { Z_PACKET_CLIENTACK,      "client-ack" },
-    { Z_PACKET_STAT,           "stat" }
+    { Z_PACKET_STAT,           "stat" },
+    { 0,                       NULL }
 };
 
 static char z_buf[256];