summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2004-08-16 22:35:56 +0000
committermbr <mbr@FreeBSD.org>2004-08-16 22:35:56 +0000
commitc3371ccc626d44b0de59ddf309efbd26f291010b (patch)
tree9f433c172e386370c21875559dc249395b5f17a6 /contrib
parent55ad7b7d6ff33c6155fcf90a0d419315e815313e (diff)
downloadFreeBSD-src-c3371ccc626d44b0de59ddf309efbd26f291010b.zip
FreeBSD-src-c3371ccc626d44b0de59ddf309efbd26f291010b.tar.gz
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 <jvdias@redhat.com> Discussed on: dhcp-hackers@isc.org
Diffstat (limited to 'contrib')
-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