the zone object's master and also-notify lists grew longer with each reload

This commit is contained in:
Andreas Gustafsson 2000-04-20 20:58:50 +00:00
parent ae72c54ef1
commit e4e183af57
3 changed files with 15 additions and 12 deletions

View file

@ -1,4 +1,7 @@
69. [bug] The zone object's master and also-notify lists grew
longer with each server reload.
68. [func] Partial support for SIG(0) on incoming messages.
67. [performance] Allow use of alternate (compile-time supplied)

View file

@ -177,6 +177,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
else
dns_zone_setoption(zone, DNS_ZONE_O_NOTIFY, ISC_TRUE);
dns_zone_clearnotify(zone);
result = dns_c_zone_getalsonotify(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
@ -185,8 +186,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearnotify(zone);
}
result = dns_c_zone_getmaxtranstimeout(czone, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
@ -256,6 +256,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
@ -264,8 +265,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
@ -348,6 +348,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
@ -356,8 +357,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)

View file

@ -177,6 +177,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
else
dns_zone_setoption(zone, DNS_ZONE_O_NOTIFY, ISC_TRUE);
dns_zone_clearnotify(zone);
result = dns_c_zone_getalsonotify(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
@ -185,8 +186,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearnotify(zone);
}
result = dns_c_zone_getmaxtranstimeout(czone, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
@ -256,6 +256,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
@ -264,8 +265,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
@ -348,6 +348,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
@ -356,8 +357,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)