From 106ee2c6eb16e1e33a4d103a2ec8e3d2c86e174d Mon Sep 17 00:00:00 2001 From: Moritz Jodeit Date: Sat, 27 May 2006 21:52:39 +0000 Subject: fix potential crash when using -v. ok canacar@ --- usr.sbin/tcpdump/print-frag6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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), -- cgit v1.2.3