]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[#16,!9] Added missing NSUPDATE compilation logic
authorThomas Markwalder <tmark@isc.org>
Wed, 15 May 2019 13:39:26 +0000 (09:39 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 15 May 2019 13:39:26 +0000 (09:39 -0400)
Added a release note.

client/dhclient.c
    Only include dhclient_ddns_cb_free() if NSUPDATE is defined

includes/omapip/isclib.*
    Only inlucde isc_result_t dns_client_init() if NSUPDATE is defined

RELNOTES
client/dhclient.c
includes/omapip/isclib.h
omapip/isclib.c

index ad9cab2ce4b18c11ada66c795fa3f7c28c047069..bead852f71760a360de5cdfd208bbba708dfb914 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -109,6 +109,10 @@ by Eric Young (eay@cryptsoft.com).
   this dependency.
   [ISC-Bugs #3,!1   git #cc35f84943df44dac2499f3e16e8aaba7d54191d]
 
+- Corrected a compilation issue that occurred when building without DNS
+  update ability (e.g. by undefining NSUPDATE).
+  [ISC-Bugs, #16,!9 git #TBD]
+
                Changes since 4.4.0 (New Features)
 - none
                Changes since 4.4.0 (Bug Fixes)
index 825ab00f1b2eaeebc0f268f6a797dd82da5e2de1..313394f3eac031999b25f031dc793f3bb44dd712 100644 (file)
@@ -3,7 +3,7 @@
    DHCP Client. */
 
 /*
- * Copyright (c) 2004-2018 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2004-2019 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 1995-2003 by Internet Software Consortium
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
@@ -120,8 +120,10 @@ static int check_domain_name_list(const char *ptr, size_t len, int dots);
 static int check_option_values(struct universe *universe, unsigned int opt,
                               const char *ptr, size_t len);
 
+#if defined(NSUPDATE)
 static void dhclient_ddns_cb_free(dhcp_ddns_cb_t *ddns_cb,
                                    char* file, int line);
+#endif
 
 /*!
  *
@@ -5382,6 +5384,7 @@ add_reject(struct packet *packet) {
        log_info("Server added to list of rejected servers.");
 }
 
+#if defined(NSUPDATE)
 /* Wrapper function around common ddns_cb_free function that ensures
  * we set the client_state pointer to the control block to NULL. */
 static void
@@ -5395,6 +5398,7 @@ dhclient_ddns_cb_free(dhcp_ddns_cb_t *ddns_cb, char* file, int line) {
         ddns_cb_free(ddns_cb, file, line);
     }
 }
+#endif
 
 #if defined(DHCPv6) && defined(DHCP4o6)
 /*
index 538b927f33372fd0124b048fa9d11f8c80bdadd6..7c80786379e9ed3c0ea649df4a9b496373455447 100644 (file)
@@ -3,7 +3,7 @@
    connections to the isc and dns libraries */
 
 /*
- * Copyright (c) 2009-2017 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2009-2019 by Internet Systems Consortium, Inc. ("ISC")
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -141,6 +141,8 @@ void isclib_cleanup(void);
 void dhcp_signal_handler(int signal);
 extern int shutdown_signal;
 
+#if defined (NSUPDATE)
 isc_result_t dns_client_init();
+#endif
 
 #endif /* ISCLIB_H */
index db3b89520eac19d9c2a821a12295f4eac6914b6c..cf150babf8680441838104c32f02ee5970f07b1f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright(c) 2009-2017 by Internet Systems Consortium, Inc.("ISC")
+ * Copyright(c) 2009-2019 by Internet Systems Consortium, Inc.("ISC")
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -351,6 +351,7 @@ void dhcp_signal_handler(int signal) {
        }
 }
 
+#if defined (NSUPDATE)
 isc_result_t dns_client_init() {
        isc_result_t result;
        if (dhcp_gbl_ctx.dnsclient == NULL) {
@@ -387,3 +388,4 @@ isc_result_t dns_client_init() {
 
        return ISC_R_SUCCESS;
 }
+#endif // defined (NSUPDATE)