diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-08 22:32:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-08 22:32:04 +0000 |
commit | 398bd78d849fcc504c06b1343b7c1c256aae8c8a (patch) | |
tree | 2876188def76e0dd8da9039fc014a489bca12420 /usr.sbin/tcpdump | |
parent | 8e47430ea924f80fea503915943e771c328eb7eb (diff) |
length check bp_file; cgd
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/print-bootp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-bootp.c b/usr.sbin/tcpdump/print-bootp.c index 2a85de790d9..4020b57214a 100644 --- a/usr.sbin/tcpdump/print-bootp.c +++ b/usr.sbin/tcpdump/print-bootp.c @@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-bootp.c,v 1.6 1997/07/25 20:12:22 mickey Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-bootp.c,v 1.7 1998/07/08 22:32:03 deraadt Exp $ (LBL)"; #endif #include <sys/param.h> @@ -146,7 +146,7 @@ bootp_print(register const u_char *cp, u_int length, return; } } - TCHECK2(bp->bp_sname[0], 1); /* check first char only */ + TCHECK2(bp->bp_file[0], 1); /* check first char only */ if (*bp->bp_file) { printf(" file \""); if (fn_print(bp->bp_file, snapend)) { |