summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoritz <moritz@openbsd.org>2006-05-27 21:52:38 +0000
committermoritz <moritz@openbsd.org>2006-05-27 21:52:38 +0000
commit2359840842e7cc2c2cfa35b4f3a0ab264afd5c20 (patch)
treec30447bb4750b050ca33ab845011e2b41c33ec3e
parentWith the National variants of the sis(4) chip make sure to (diff)
downloadwireguard-openbsd-2359840842e7cc2c2cfa35b4f3a0ab264afd5c20.tar.xz
wireguard-openbsd-2359840842e7cc2c2cfa35b4f3a0ab264afd5c20.zip
fix potential crash when using -v. ok canacar@
-rw-r--r--usr.sbin/tcpdump/print-frag6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-frag6.c b/usr.sbin/tcpdump/print-frag6.c
index 6592028859b..1ceace94955 100644
--- a/usr.sbin/tcpdump/print-frag6.c
+++ b/usr.sbin/tcpdump/print-frag6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-frag6.c,v 1.2 2004/06/22 11:58:44 itojun Exp $ */
+/* $OpenBSD: print-frag6.c,v 1.3 2006/05/27 21:52:38 moritz Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@ -72,6 +72,7 @@ frag6_print(register const u_char *bp, register const u_char *bp2)
TCHECK(dp->ip6f_offlg);
if (vflag) {
+ TCHECK(dp->ip6f_ident);
printf("frag (0x%08x:%d|%ld)",
ntohl(dp->ip6f_ident),
ntohs(dp->ip6f_offlg & IP6F_OFF_MASK),