summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2012-11-14 18:10:45 +0000
committerkrw <krw@openbsd.org>2012-11-14 18:10:45 +0000
commitdb8c3d4a697e4bd45e677548c58669f7645a3512 (patch)
treea77653d4198ae189e13d9fead37c008690645a46
parentWhen copying option.data, use option.len to specify the amount of (diff)
downloadwireguard-openbsd-db8c3d4a697e4bd45e677548c58669f7645a3512.tar.xz
wireguard-openbsd-db8c3d4a697e4bd45e677548c58669f7645a3512.zip
Oops. Commit the one that actually compiles.
-rw-r--r--sbin/dhclient/dhclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 58d25da9a46..a8bca6daa43 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.174 2012/11/14 18:09:01 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.175 2012/11/14 18:10:45 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -725,7 +725,7 @@ state_bound(void)
if (client->active->options[DHO_DHCP_SERVER_IDENTIFIER].len == 4) {
memcpy(&client->destination.s_addr,
client->active->options[DHO_DHCP_SERVER_IDENTIFIER].data,
- client->active->options[DHO_DHCP_SERVER_IDENTIFIER].len));
+ client->active->options[DHO_DHCP_SERVER_IDENTIFIER].len);
} else
client->destination.s_addr = INADDR_BROADCAST;