SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
net/trafshow/patches/patch-display_c
Normal file
13
net/trafshow/patches/patch-display_c
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- display.c.orig Mon Aug 24 05:51:48 1998
|
||||
+++ display.c Tue Apr 5 22:44:25 2016
|
||||
@@ -389,8 +389,8 @@ truncated-udp: wrong ip hdrlen");
|
||||
te.sport = ntohs(((struct udphdr *)cp)->uh_sport);
|
||||
te.dport = ntohs(((struct udphdr *)cp)->uh_dport);
|
||||
} else if (ip->ip_p == IPPROTO_ICMP) {
|
||||
- if (cp + sizeof(struct icmp) > snapend ||
|
||||
- iplen - hlen < sizeof(struct icmp)) {
|
||||
+ if (cp + 4 > snapend ||
|
||||
+ iplen - hlen < 4) {
|
||||
mvprintw(LINES-1, err_pos, "\
|
||||
truncated-icmp: wrong ip hdrlen");
|
||||
clrtoeol();
|
Loading…
Add table
Add a link
Reference in a new issue