summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2016-09-11 19:47:12 +0000
committerflorian <florian@openbsd.org>2016-09-11 19:47:12 +0000
commitfc24470dbcb65ec74b96339773cff10da85fd858 (patch)
tree031fb4a0fdb8effea260bac3b267b8694a4e7810
parentIn this day and age use tcpdump to figure out to whom an ICMP echo (diff)
downloadwireguard-openbsd-fc24470dbcb65ec74b96339773cff10da85fd858.tar.xz
wireguard-openbsd-fc24470dbcb65ec74b96339773cff10da85fd858.zip
With the if a few lines above, this can never be true.
-rw-r--r--sbin/ping6/ping6.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 17481335846..7d26dd9dc5f 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.181 2016/09/11 19:46:10 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.182 2016/09/11 19:47:12 florian Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -995,11 +995,6 @@ pr_pack(u_char *buf, int cc, struct msghdr *mhdr)
struct tv64 *tv64;
u_int8_t mac[SIPHASH_DIGEST_LENGTH];
- if (cc - sizeof(*cp) < sizeof(payload)) {
- (void)printf("signature missing!\n");
- return;
- }
-
memcpy(&payload, icp + 1, sizeof(payload));
tv64 = &payload.tv64;