]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Abandoned or dissociated (err condition) leases now remove any related
authorDavid Hankins <dhankins@isc.org>
Tue, 18 Jul 2006 18:15:53 +0000 (18:15 +0000)
committerDavid Hankins <dhankins@isc.org>
Tue, 18 Jul 2006 18:15:53 +0000 (18:15 +0000)
  dynamic dns bindings.  Thanks to a patch from Patrick Schoo.
  [ISC-Bugs #15836]

RELNOTES
server/mdb.c

index c681b592fef8d4e80ab1be52e077875142fd4622..6b7aed3fb1154a101f6b9fa31d45b4139e01e507 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -165,6 +165,9 @@ and for prodding me into improving it.
   in dhcpd.conf "executable statements" has been updated to be more helpful.
   Manpage information for this value has also been updated.
 
+- Abandoned or dissociated (err condition) leases now remove any related
+  dynamic dns bindings.  Thanks to a patch from Patrick Schoo.
+
                        Changes since 3.0.4rc1
 
 - The dhcp-options.5 manpage was updated to correct indentation errors
index 86b060a1ec45dad4b651138a2041aaf7b388e089..000f027b8e948f33e898f83c45966baa144cbd8d 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: mdb.c,v 1.81 2006/06/16 19:26:45 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: mdb.c,v 1.82 2006/07/18 18:15:53 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1505,6 +1505,9 @@ void abandon_lease (lease, message)
        const char *message;
 {
        struct lease *lt = (struct lease *)0;
+#if defined (NSUPDATE)
+       ddns_removals (lease);
+#endif
 
        if (!lease_copy (&lt, lease, MDL))
                return;
@@ -1534,6 +1537,9 @@ void dissociate_lease (lease)
        struct lease *lease;
 {
        struct lease *lt = (struct lease *)0;
+#if defined (NSUPDATE)
+       ddns_removals (lease);
+#endif
 
        if (!lease_copy (&lt, lease, MDL))
                return;