mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
dns_zone_configure() does not need to special-case hint zones,
because it must never be called for them
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zoneconf.c,v 1.67 2000/11/07 23:49:29 mws Exp $ */
|
/* $Id: zoneconf.c,v 1.68 2000/11/11 01:05:43 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -241,30 +241,26 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
|
|||||||
dns_zone_setqueryacl,
|
dns_zone_setqueryacl,
|
||||||
dns_zone_clearqueryacl));
|
dns_zone_clearqueryacl));
|
||||||
|
|
||||||
if (czone->ztype != dns_c_zone_hint) {
|
result = dns_c_zone_getdialup(czone, &dialup);
|
||||||
result = dns_c_zone_getdialup(czone, &dialup);
|
if (result != ISC_R_SUCCESS && cview != NULL)
|
||||||
if (result != ISC_R_SUCCESS && cview != NULL)
|
result = dns_c_view_getdialup(cview, &dialup);
|
||||||
result = dns_c_view_getdialup(cview, &dialup);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
result = dns_c_ctx_getdialup(cctx, &dialup);
|
||||||
result = dns_c_ctx_getdialup(cctx, &dialup);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
dialup = dns_dialuptype_no;
|
||||||
dialup = dns_dialuptype_no;
|
dns_zone_setdialup(zone, dialup);
|
||||||
dns_zone_setdialup(zone, dialup);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (czone->ztype != dns_c_zone_hint) {
|
result = dns_c_zone_getstatistics(czone, &statistics);
|
||||||
result = dns_c_zone_getstatistics(czone, &statistics);
|
if (result != ISC_R_SUCCESS && cview != NULL)
|
||||||
if (result != ISC_R_SUCCESS && cview != NULL)
|
result = dns_c_view_getstatistics(cview, &statistics);
|
||||||
result = dns_c_view_getstatistics(cview, &statistics);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
result = dns_c_ctx_getstatistics(cctx, &statistics);
|
||||||
result = dns_c_ctx_getstatistics(cctx, &statistics);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
statistics = ISC_FALSE;
|
||||||
statistics = ISC_FALSE;
|
if (statistics)
|
||||||
if (statistics)
|
dns_zone_startcounting(zone);
|
||||||
dns_zone_startcounting(zone);
|
else
|
||||||
else
|
dns_zone_stopcounting(zone);
|
||||||
dns_zone_stopcounting(zone);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef NOMINUM_PUBLIC
|
#ifndef NOMINUM_PUBLIC
|
||||||
if (czone->ztype != dns_c_zone_stub) {
|
if (czone->ztype != dns_c_zone_stub) {
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zoneconf.c,v 1.67 2000/11/07 23:49:29 mws Exp $ */
|
/* $Id: zoneconf.c,v 1.68 2000/11/11 01:05:43 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -241,30 +241,26 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
|
|||||||
dns_zone_setqueryacl,
|
dns_zone_setqueryacl,
|
||||||
dns_zone_clearqueryacl));
|
dns_zone_clearqueryacl));
|
||||||
|
|
||||||
if (czone->ztype != dns_c_zone_hint) {
|
result = dns_c_zone_getdialup(czone, &dialup);
|
||||||
result = dns_c_zone_getdialup(czone, &dialup);
|
if (result != ISC_R_SUCCESS && cview != NULL)
|
||||||
if (result != ISC_R_SUCCESS && cview != NULL)
|
result = dns_c_view_getdialup(cview, &dialup);
|
||||||
result = dns_c_view_getdialup(cview, &dialup);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
result = dns_c_ctx_getdialup(cctx, &dialup);
|
||||||
result = dns_c_ctx_getdialup(cctx, &dialup);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
dialup = dns_dialuptype_no;
|
||||||
dialup = dns_dialuptype_no;
|
dns_zone_setdialup(zone, dialup);
|
||||||
dns_zone_setdialup(zone, dialup);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (czone->ztype != dns_c_zone_hint) {
|
result = dns_c_zone_getstatistics(czone, &statistics);
|
||||||
result = dns_c_zone_getstatistics(czone, &statistics);
|
if (result != ISC_R_SUCCESS && cview != NULL)
|
||||||
if (result != ISC_R_SUCCESS && cview != NULL)
|
result = dns_c_view_getstatistics(cview, &statistics);
|
||||||
result = dns_c_view_getstatistics(cview, &statistics);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
result = dns_c_ctx_getstatistics(cctx, &statistics);
|
||||||
result = dns_c_ctx_getstatistics(cctx, &statistics);
|
if (result != ISC_R_SUCCESS)
|
||||||
if (result != ISC_R_SUCCESS)
|
statistics = ISC_FALSE;
|
||||||
statistics = ISC_FALSE;
|
if (statistics)
|
||||||
if (statistics)
|
dns_zone_startcounting(zone);
|
||||||
dns_zone_startcounting(zone);
|
else
|
||||||
else
|
dns_zone_stopcounting(zone);
|
||||||
dns_zone_stopcounting(zone);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef NOMINUM_PUBLIC
|
#ifndef NOMINUM_PUBLIC
|
||||||
if (czone->ztype != dns_c_zone_stub) {
|
if (czone->ztype != dns_c_zone_stub) {
|
||||||
|
Reference in New Issue
Block a user