]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[v4_1_esv] Leave siaddr clear when sending a NAK
authorShawn Routhier <sar@isc.org>
Thu, 16 Apr 2015 19:11:02 +0000 (12:11 -0700)
committerShawn Routhier <sar@isc.org>
Thu, 16 Apr 2015 19:11:02 +0000 (12:11 -0700)
RELNOTES
server/dhcp.c

index c09004aacbda4606cfe5d50bd6ab8779337a4e55..ab5dda020739637e9b01385ab09001198a22d85c 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -91,6 +91,10 @@ by Eric Young (eay@cryptsoft.com).
   or add a lease entry with a date far in the future.
   [ISC-Bugs #33056]
 
+- Leave the siaddr field clear when sending a NACK as per RFC 2131
+  table 3.
+  [ISC-Bugs #38769]
+
                        Changes since 4.1-ESV-R11rc2
 
 - None
index cb414961a14fc4f5f8ec12c1679617d7a1f918e9..d24f520e8b71d713342934caecacfe122d2f6866 100644 (file)
@@ -3,7 +3,7 @@
    DHCP Protocol engine. */
 
 /*
- * Copyright (c) 2004-2014 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004-2015 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 1995-2003 by Internet Software Consortium
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -1432,8 +1432,6 @@ void nak_lease (packet, cip)
        option_state_dereference (&options, MDL);
 
 /*     memset (&raw.ciaddr, 0, sizeof raw.ciaddr);*/
-       if (packet->interface->address_count)
-               raw.siaddr = packet->interface->addresses[0];
        raw.giaddr = packet -> raw -> giaddr;
        memcpy (raw.chaddr, packet -> raw -> chaddr, sizeof raw.chaddr);
        raw.hlen = packet -> raw -> hlen;