diff options
Diffstat (limited to 'net-analyzer/nmap/files/nmap-9999-netutil-else.patch')
-rw-r--r-- | net-analyzer/nmap/files/nmap-9999-netutil-else.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-analyzer/nmap/files/nmap-9999-netutil-else.patch b/net-analyzer/nmap/files/nmap-9999-netutil-else.patch new file mode 100644 index 000000000000..a96a04b7a87f --- /dev/null +++ b/net-analyzer/nmap/files/nmap-9999-netutil-else.patch @@ -0,0 +1,20 @@ +--- a/libnetutil/netutil.cc ++++ b/libnetutil/netutil.cc +@@ -2571,7 +2571,7 @@ const char *ippackethdrinfo(const u8 *packet, u32 len, int detail) { + + /* CASE 4: where we (finally!) have a full 20 byte TCP header so we can + * safely print all fields */ +- else { /* if (datalen >= 20) */ ++ else if (datalen >= 20) { + + /* TCP Flags */ + p = tflags; +@@ -2633,7 +2633,7 @@ const char *ippackethdrinfo(const u8 *packet, u32 len, int detail) { + (tcpoptinfo[0]!='\0') ? " " : "", + tcpoptinfo, ipinfo); + } +- } else{ ++ } 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. */ |