diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2006-05-27 21:52:39 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2006-05-27 21:52:39 +0000 |
commit | 106ee2c6eb16e1e33a4d103a2ec8e3d2c86e174d (patch) | |
tree | e5e3852de4aefd3080303b408cce235b2562a87a | |
parent | e3eae3f873d625a76aa4967376664609aa6066ea (diff) |
fix potential crash when using -v. ok canacar@
-rw-r--r-- | usr.sbin/tcpdump/print-frag6.c | 3 |
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), |