$OpenBSD: patch-display_c,v 1.2 2004/05/08 17:24:45 mickey Exp $
--- display.c.orig	Sat May  8 13:20:48 2004
+++ display.c	Sat May  8 13:19:09 2004
@@ -389,8 +389,8 @@
 				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();
