]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- A bug in dhclient was repaired which caused it to send parameter request
authorDavid Hankins <dhankins@isc.org>
Mon, 21 May 2007 18:16:54 +0000 (18:16 +0000)
committerDavid Hankins <dhankins@isc.org>
Mon, 21 May 2007 18:16:54 +0000 (18:16 +0000)
  lists of 55 bytes in length no matter how long the declared PRL was.
  [ISC-Bugs #16882]

RELNOTES
client/dhclient.c

index 672a7d692ed0d96f77f1f78c3b2764600f3ad23b..d6b9ac0f8b3eb0ded77b96fec1487c84f15c5e23 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -158,6 +158,9 @@ suggested fixes to <dhcp-users@isc.org>.
 - A bug was repaired in subencapsulation support, where spaces separated
   by empty spaces would not get included.
 
+- A bug in dhclient was repaired which caused it to send parameter request
+  lists of 55 bytes in length no matter how long the declared PRL was.
+
                        Changes since 3.1.0a3
 
 - Some spelling fixes.
index 2aec1a7e11a5260132b05822359a8acf56a0cb73..ee2a0e14f884f74efe798fb54c8738d9fc4f0070 100644 (file)
@@ -32,7 +32,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhclient.c,v 1.150 2007/05/19 18:47:13 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: dhclient.c,v 1.151 2007/05/21 18:16:54 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -2001,12 +2001,13 @@ void make_client_options (client, lease, type, sid, rip, prl, op)
                if (!buffer_allocate (&bp, i, MDL))
                        log_error ("can't make parameter list buffer.");
                else {
+                       unsigned code = DHO_DHCP_PARAMETER_REQUEST_LIST;
+
                        for (i = 0; prl [i]; i++)
                                bp -> data [i] = prl [i];
-                       i = DHO_DHCP_PARAMETER_REQUEST_LIST;
                        if (!(option_code_hash_lookup(&option,
                                                      dhcp_universe.code_hash,
-                                                     &i, 0, MDL) &&
+                                                     &code, 0, MDL) &&
                              make_const_option_cache(&oc, &bp, NULL, i,
                                                      option, MDL)))
                                log_error ("can't make option cache");