]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve: explicit default when setting port 7959/head
authorEric Leblond <el@stamus-networks.com>
Sun, 2 Oct 2022 13:00:39 +0000 (15:00 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 3 Oct 2022 09:03:27 +0000 (11:03 +0200)
src/output-json.c

index 5b75d5f75b902ebda3125b8f6431deee55a5276a..0d836cd17bd405276d2c13c818d59ac753420b5d 100644 (file)
@@ -566,15 +566,15 @@ void JsonAddrInfoInit(const Packet *p, enum OutputJsonLogDirection dir, JsonAddr
     strlcpy(addr->src_ip, srcip, JSON_ADDR_LEN);
     strlcpy(addr->dst_ip, dstip, JSON_ADDR_LEN);
 
-    switch(p->proto) {
-        case IPPROTO_ICMP:
-            break;
+    switch (p->proto) {
         case IPPROTO_UDP:
         case IPPROTO_TCP:
         case IPPROTO_SCTP:
             addr->sp = sp;
             addr->dp = dp;
             break;
+        default:
+            break;
     }
 
     if (SCProtoNameValid(IP_GET_IPPROTO(p))) {