summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-bootp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-07-08 22:32:03 +0000
committerderaadt <deraadt@openbsd.org>1998-07-08 22:32:03 +0000
commitc8cf20828f31f79bdda062a04e49cc4663b09d2a (patch)
tree651dce3e59dd518debe1c5f610d9a2b4076cb3a9 /usr.sbin/tcpdump/print-bootp.c
parentopen fd1 and fd2 as FREAD|FWRITE (diff)
downloadwireguard-openbsd-c8cf20828f31f79bdda062a04e49cc4663b09d2a.tar.xz
wireguard-openbsd-c8cf20828f31f79bdda062a04e49cc4663b09d2a.zip
length check bp_file; cgd
Diffstat (limited to 'usr.sbin/tcpdump/print-bootp.c')
-rw-r--r--usr.sbin/tcpdump/print-bootp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-bootp.c b/usr.sbin/tcpdump/print-bootp.c
index f11eac1c669..64ead9695c6 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: /home/cvs/src/usr.sbin/tcpdump/print-bootp.c,v 1.6 1997/07/25 20:12:22 mickey Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/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)) {