]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
If ddns-updates is not set, default to enabled.
authorTed Lemon <source@isc.org>
Thu, 4 Jan 2001 00:15:50 +0000 (00:15 +0000)
committerTed Lemon <source@isc.org>
Thu, 4 Jan 2001 00:15:50 +0000 (00:15 +0000)
server/dhcp.c

index 00e967fb6c0ed58a6d71e13ce61f97085b78c00f..6aa9e561ce818b236148e4b282f01fc08f771320 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.174 2000/12/28 23:28:17 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.175 2001/01/04 00:15:50 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -2017,12 +2017,13 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp)
 #ifdef NSUPDATE
        /* Perform DDNS updates, if configured to. */
        if ((!offer || offer == DHCPACK) &&
-           (oc = lookup_option (&server_universe, state -> options,
-                                SV_DDNS_UPDATES)) &&
-           evaluate_boolean_option_cache (&ignorep, packet, lt,
-                                          (struct client_state *)0,
-                                          packet -> options, state -> options,
-                                          &lt -> scope, oc, MDL)) {
+           (!(oc = lookup_option (&server_universe, state -> options,
+                                  SV_DDNS_UPDATES)) ||
+            evaluate_boolean_option_cache (&ignorep, packet, lt,
+                                           (struct client_state *)0,
+                                           packet -> options,
+                                           state -> options,
+                                           &lt -> scope, oc, MDL))) {
                ddns_updates (packet, lt, state);
        }
 #endif /* NSUPDATE */