2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Don't freeze an already frozen zone.

This commit is contained in:
Brian Wellington
2002-01-24 09:58:42 +00:00
parent 42e74b77f5
commit b6279d0b4b
3 changed files with 11 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.368 2002/01/22 22:05:48 bwelling Exp $ */
/* $Id: server.c,v 1.369 2002/01/24 09:58:39 bwelling Exp $ */
#include <config.h>
@@ -2868,7 +2868,10 @@ ns_server_freeze(ns_server_t *server, isc_boolean_t freeze, char *args) {
}
if (freeze) {
result = dns_zone_flush(zone);
if (dns_zone_getupdatedisabled(zone))
result = DNS_R_FROZEN;
if (result == ISC_R_SUCCESS)
result = dns_zone_flush(zone);
if (result == ISC_R_SUCCESS) {
journal = dns_zone_getjournal(zone);
if (journal != NULL)