summaryrefslogtreecommitdiff
path: root/sbin/ping6
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-11 19:47:13 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-11 19:47:13 +0000
commitb18ad06a7cc0a60fb06a808ca59b56e237120740 (patch)
tree41a583f16367851560cae1cd713fcec53fa46494 /sbin/ping6
parent6bfd7f5c43b3a13fc11b658a95621b07cbc4a445 (diff)
With the if a few lines above, this can never be true.
Diffstat (limited to 'sbin/ping6')
-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;