summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/client/dhclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/isc-dhcp/client/dhclient.c')
-rw-r--r--contrib/isc-dhcp/client/dhclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c
index 939bc7a..9d0682f 100644
--- a/contrib/isc-dhcp/client/dhclient.c
+++ b/contrib/isc-dhcp/client/dhclient.c
@@ -2073,6 +2073,9 @@ void make_request (client, lease)
else
oc = (struct option_cache *)0;
+ if (client->sent_options != 0L)
+ option_state_dereference (&client -> sent_options, MDL);
+
make_client_options (client, lease, &request, oc,
((client -> state == S_REQUESTING ||
client -> state == S_REBOOTING)
@@ -2095,7 +2098,6 @@ void make_request (client, lease)
(struct data_string *)0,
client -> config -> vendor_space_name);
- option_state_dereference (&client -> sent_options, MDL);
if (client -> packet_length < BOOTP_MIN_LEN)
client -> packet_length = BOOTP_MIN_LEN;
OpenPOWER on IntegriCloud