From: Ted Lemon Date: Mon, 9 Apr 2001 01:18:15 +0000 (+0000) Subject: Make compiles work without NSUPDATE. X-Git-Tag: V3-RC1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff591474e0861b53e417b70a1d6c5dd8b0eed836;p=thirdparty%2Fdhcp.git Make compiles work without NSUPDATE. --- diff --git a/server/mdb.c b/server/mdb.c index 09dcac12b..cfc92da93 100644 --- a/server/mdb.c +++ b/server/mdb.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: mdb.c,v 1.57 2001/04/06 01:03:39 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: mdb.c,v 1.58 2001/04/09 01:18:15 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1098,7 +1098,9 @@ void process_state_transition (struct lease *lease) lease -> binding_state == FTS_BOOTP || lease -> binding_state == FTS_RESERVED) && lease -> next_binding_state != FTS_RELEASED))) { +#if defined (NSUPDATE) ddns_removals (lease); +#endif if (lease -> on_expiry) { execute_statements ((struct binding_value **)0, (struct packet *)0, lease, @@ -1135,7 +1137,9 @@ void process_state_transition (struct lease *lease) lease -> binding_state == FTS_BOOTP || lease -> binding_state == FTS_RESERVED) && lease -> next_binding_state == FTS_RELEASED))) { +#if defined (NSUPDATE) ddns_removals (lease); +#endif if (lease -> on_release) { execute_statements ((struct binding_value **)0, (struct packet *)0, lease, @@ -1249,7 +1253,9 @@ void release_lease (lease, packet) { /* If there are statements to execute when the lease is released, execute them. */ +#if defined (NSUPDATE) ddns_removals (lease); +#endif if (lease -> on_release) { execute_statements ((struct binding_value **)0, packet, lease, (struct client_state *)0,