]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove isc_bind9 usage from view.c
authorEvan Hunt <each@isc.org>
Thu, 4 Oct 2018 00:56:50 +0000 (17:56 -0700)
committerWitold Kręcicki <wpk@isc.org>
Thu, 18 Oct 2018 09:19:12 +0000 (09:19 +0000)
lib/dns/view.c

index 7d70b373b157c76f99e07ea37683fc4acc65bdf2..53e04b67614438a934a0a94748a5c5bc49450839 100644 (file)
@@ -121,16 +121,15 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
                goto cleanup_name;
 
        view->zonetable = NULL;
-       if (isc_bind9) {
-               result = dns_zt_create(mctx, rdclass, &view->zonetable);
-               if (result != ISC_R_SUCCESS) {
-                       UNEXPECTED_ERROR(__FILE__, __LINE__,
-                                        "dns_zt_create() failed: %s",
-                                        isc_result_totext(result));
-                       result = ISC_R_UNEXPECTED;
-                       goto cleanup_mutex;
-               }
+       result = dns_zt_create(mctx, rdclass, &view->zonetable);
+       if (result != ISC_R_SUCCESS) {
+               UNEXPECTED_ERROR(__FILE__, __LINE__,
+                                "dns_zt_create() failed: %s",
+                                isc_result_totext(result));
+               result = ISC_R_UNEXPECTED;
+               goto cleanup_mutex;
        }
+
        view->secroots_priv = NULL;
        view->ntatable_priv = NULL;
        view->fwdtable = NULL;
@@ -264,10 +263,9 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
        if (result != ISC_R_SUCCESS)
                goto cleanup_dynkeys;
 
-       if (isc_bind9) {
-               result = dns_order_create(view->mctx, &view->order);
-               if (result != ISC_R_SUCCESS)
-                       goto cleanup_new_zone_lock;
+       result = dns_order_create(view->mctx, &view->order);
+       if (result != ISC_R_SUCCESS) {
+               goto cleanup_new_zone_lock;
        }
 
        result = dns_peerlist_new(view->mctx, &view->peers);