From b5c1da06a93c5c40a863c2b15009eaf957e82f3c Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Mon, 16 Aug 2004 22:35:56 +0000 Subject: [PATCH] Make 'client DNS forward update' working again which got broken in rev. RC9 of dhclient 3.0.1. This fix will be part of dhclient 3.0.2. It is also part of the official redhat package. Submitted by: Jason Vas Dias Discussed on: dhcp-hackers@isc.org --- contrib/isc-dhcp/client/dhclient.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c index 939bc7a2b3cf..9d0682fdd6e8 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;