From: David Hankins Date: Tue, 18 Jul 2006 18:15:53 +0000 (+0000) Subject: - Abandoned or dissociated (err condition) leases now remove any related X-Git-Tag: DHCPv6_parsing_base~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87578987655f1a95d7877cb5136e2b552944e1c6;p=thirdparty%2Fdhcp.git - Abandoned or dissociated (err condition) leases now remove any related dynamic dns bindings. Thanks to a patch from Patrick Schoo. [ISC-Bugs #15836] --- diff --git a/RELNOTES b/RELNOTES index c681b592f..6b7aed3fb 100644 --- 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 diff --git a/server/mdb.c b/server/mdb.c index 86b060a1e..000f027b8 100644 --- a/server/mdb.c +++ b/server/mdb.c @@ -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 (<, 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 (<, lease, MDL)) return;