]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Cleaned up an unused hardware address variable in nak_lease().
authorDavid Hankins <dhankins@isc.org>
Mon, 1 Feb 2010 22:03:15 +0000 (22:03 +0000)
committerDavid Hankins <dhankins@isc.org>
Mon, 1 Feb 2010 22:03:15 +0000 (22:03 +0000)
  [ISC-Bugs #15382]

RELNOTES
server/dhcp.c

index 635b9354967f0581329a534e4cd26633b7cf6a03..d989e7f26b51cd52a78dfd6b77c4dddbf5e3e18a 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -40,11 +40,13 @@ work on other platforms. Please report any problems and suggested fixes to
 <dhcp-users@isc.org>.
 
 
-                        Changes since 4.2.0a1
+                       Changes since 4.2.0a1
 
 - When using 'ignore client-updates;', the FQDN returned to the client
   is no longer truncated to one octet.
 
+- Cleaned up an unused hardware address variable in nak_lease().
+
 - Manpage entries for the ia-pd and ia-prefix options were updated to
   reflect support for prefix delegation.
 
index 694dc45199e6d6133aabfe502ddbcb44962533f6..f49cee38f6cd095ca267ccf4d131ca2fa13e4848 100644 (file)
@@ -1303,7 +1303,6 @@ void nak_lease (packet, cip)
        struct dhcp_packet raw;
        unsigned char nak = DHCPNAK;
        struct packet outgoing;
-       struct hardware hto;
        unsigned i;
        struct option_state *options = (struct option_state *)0;
        struct option_cache *oc = (struct option_cache *)0;
@@ -1405,8 +1404,6 @@ void nak_lease (packet, cip)
              ? inet_ntoa (packet -> raw -> giaddr)
              : packet -> interface -> name);
 
-
-
 #ifdef DEBUG_PACKET
        dump_packet (packet);
        dump_raw ((unsigned char *)packet -> raw, packet -> packet_length);
@@ -1414,13 +1411,6 @@ void nak_lease (packet, cip)
        dump_raw ((unsigned char *)&raw, outgoing.packet_length);
 #endif
 
-#if 0
-       hto.hbuf [0] = packet -> raw -> htype;
-       hto.hlen = packet -> raw -> hlen;
-       memcpy (&hto.hbuf [1], packet -> raw -> chaddr, hto.hlen);
-       hto.hlen++;
-#endif
-
        /* Set up the common stuff... */
        to.sin_family = AF_INET;
 #ifdef HAVE_SA_LEN
@@ -1442,10 +1432,9 @@ void nak_lease (packet, cip)
                        to.sin_port = remote_port; /* for testing. */
 
                if (fallback_interface) {
-                       result = send_packet (fallback_interface,
-                                             packet, &raw,
-                                             outgoing.packet_length,
-                                             from, &to, &hto);
+                       result = send_packet(fallback_interface, packet, &raw,
+                                            outgoing.packet_length, from, &to,
+                                            NULL);
                        return;
                }
        } else {
@@ -1454,9 +1443,8 @@ void nak_lease (packet, cip)
        }
 
        errno = 0;
-       result = send_packet (packet -> interface,
-                             packet, &raw, outgoing.packet_length,
-                             from, &to, (struct hardware *)0);
+       result = send_packet(packet->interface, packet, &raw,
+                            outgoing.packet_length, from, &to, NULL);
 }
 
 void ack_lease (packet, lease, offer, when, msg, ms_nulltp, hp)