summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-pfsync.c
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2003-12-19 23:13:08 +0000
committermcbride <mcbride@openbsd.org>2003-12-19 23:13:08 +0000
commit0c77bec67a7d67b05fd798fc0a0b5339caf66cd0 (patch)
treec474bd5311fcd5cf0845586ee8bec0a3b43f91aa /usr.sbin/tcpdump/print-pfsync.c
parentadd cpu_ecxfeature to cpu.h, and stop locally externing it and cpu_feature. (diff)
downloadwireguard-openbsd-0c77bec67a7d67b05fd798fc0a0b5339caf66cd0.tar.xz
wireguard-openbsd-0c77bec67a7d67b05fd798fc0a0b5339caf66cd0.zip
Argh. Calculate the length really, really correctly.
Diffstat (limited to 'usr.sbin/tcpdump/print-pfsync.c')
-rw-r--r--usr.sbin/tcpdump/print-pfsync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c
index d1fa7c7cc35..9d3f6d2cb73 100644
--- a/usr.sbin/tcpdump/print-pfsync.c
+++ b/usr.sbin/tcpdump/print-pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pfsync.c,v 1.14 2003/12/19 22:35:57 mcbride Exp $ */
+/* $OpenBSD: print-pfsync.c,v 1.15 2003/12/19 23:13:08 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -28,7 +28,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-pfsync.c,v 1.14 2003/12/19 22:35:57 mcbride Exp $";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-pfsync.c,v 1.15 2003/12/19 23:13:08 mcbride Exp $";
#endif
#include <sys/param.h>
@@ -98,7 +98,7 @@ pfsync_ip_print(const u_char *bp, u_int len, const u_char *bp2)
if (len < PFSYNC_HDRLEN)
printf("[|pfsync]");
else
- pfsync_print(hdr, (len - sizeof(struct pfsync_header) - hlen));
+ pfsync_print(hdr, (len - sizeof(struct pfsync_header)));
}
void