summaryrefslogtreecommitdiff
path: root/sbin/ping/ping.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-17 09:37:20 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-17 09:37:20 +0000
commit2a406c587e49c2f0b44860d598b3cc58f09701cb (patch)
tree558fdf2db00938bf527618cadd59a97f71a35422 /sbin/ping/ping.c
parentd20c11884aa055b3ad95be1c4f3e2bcd452b6bd4 (diff)
iov_base is already set in this case; reduce diff to ping6(8).
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r--sbin/ping/ping.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 2b63c3a43b1..2a42fb62a24 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.203 2016/09/17 09:36:42 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.204 2016/09/17 09:37:19 florian Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -903,8 +903,7 @@ pinger(int s)
cc += sizeof(struct ip);
ip->ip_len = htons(cc);
ip->ip_sum = in_cksum((u_short *)outpackhdr, cc);
- } else
- smsgiov.iov_base = (caddr_t)outpack;
+ }
smsgiov.iov_len = cc;