From 898988dcd32d42cc69b418966f102ddc08ecbe51 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 26 Dec 2019 16:46:17 +0000 Subject: [PATCH] Remove dangling else --- libnetutil/netutil.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index acc8efae8..48e653416 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -2633,12 +2633,6 @@ const char *ippackethdrinfo(const u8 *packet, u32 len, int detail) { (tcpoptinfo[0]!='\0') ? " " : "", tcpoptinfo, ipinfo); } - } else{ - /* If the packet does not fall into any other category, then we have a - really screwed-up packet. */ - /* This ought to be unreachable; if static analysis flags it as such, delete it. */ - Snprintf(protoinfo, sizeof(protoinfo), "TCP %s:?? > %s:?? ?? %s (invalid TCP)", - srchost, dsthost, ipinfo); } /* UDP INFORMATION ***********************************************************/