summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-05-08 19:00:19 +0000
committerkrw <krw@openbsd.org>2020-05-08 19:00:19 +0000
commitbcb8b2b58e54d57a7f71d404b17c35ca02b16b51 (patch)
treef1a45cabf0841efc0cfa92c067a10c08cf882f5e /sbin/dhclient/dhclient.c
parentNuke 'set but never used' addrs field in struct proposal. (diff)
downloadwireguard-openbsd-bcb8b2b58e54d57a7f71d404b17c35ca02b16b51.tar.xz
wireguard-openbsd-bcb8b2b58e54d57a7f71d404b17c35ca02b16b51.zip
Nuke unneeded 'inits' field in struct proposal. 'mtu' being 0 is enough of a clue
to avoid setting interface mtu.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 0aa9de9f9aa..3343e15dc1c 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.665 2020/05/08 18:47:02 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.666 2020/05/08 19:00:19 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -1990,7 +1990,6 @@ lease_as_proposal(struct client_lease *lease)
if (opt->len == sizeof(uint16_t)) {
memcpy(&proposal->mtu, opt->data, sizeof(proposal->mtu));
proposal->mtu = ntohs(proposal->mtu);
- proposal->inits |= RTV_MTU;
}
opt = &lease->options[DHO_SUBNET_MASK];