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:
parent
ade06bd257
commit
b78f21115c
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user