2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

apply view and global defaults for 'max-transfer-idle-out' option

in the correct order
This commit is contained in:
Andreas Gustafsson 2000-04-21 00:20:22 +00:00
parent ade06bd257
commit b78f21115c
2 changed files with 8 additions and 8 deletions

View File

@ -206,10 +206,10 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setmaxxfrout(zone, maxxfr);
result = dns_c_zone_getmaxtransidleout(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
result = dns_c_view_getmaxtransferidleout(cview, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS)
maxxfr = DNS_DEFAULT_IDLEOUT;
dns_zone_setidleout(zone, maxxfr);
@ -317,10 +317,10 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setmaxxfrout(zone, maxxfr);
result = dns_c_zone_getmaxtransidleout(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
result = dns_c_view_getmaxtransferidleout(cview, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS)
maxxfr = DNS_DEFAULT_IDLEOUT;
dns_zone_setidleout(zone, maxxfr);

View File

@ -206,10 +206,10 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setmaxxfrout(zone, maxxfr);
result = dns_c_zone_getmaxtransidleout(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
result = dns_c_view_getmaxtransferidleout(cview, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS)
maxxfr = DNS_DEFAULT_IDLEOUT;
dns_zone_setidleout(zone, maxxfr);
@ -317,10 +317,10 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setmaxxfrout(zone, maxxfr);
result = dns_c_zone_getmaxtransidleout(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
result = dns_c_view_getmaxtransferidleout(cview, &maxxfr);
if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx, &maxxfr);
if (result != ISC_R_SUCCESS)
maxxfr = DNS_DEFAULT_IDLEOUT;
dns_zone_setidleout(zone, maxxfr);