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

1016. [bug] Slave zones with no backup file were re-transferred

on every server reload.
This commit is contained in:
Andreas Gustafsson 2001-09-25 23:01:15 +00:00
parent f2d88ed98c
commit ff4322d44f
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,7 @@
1016. [bug] Slave zones with no backup file were re-transferred
on every server reload.
1015. [bug] Log channels that had a "versions" option but no
"size" option failed to create numbered log
files. [RT #1783]

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zoneconf.c,v 1.92 2001/09/08 00:21:36 gson Exp $ */
/* $Id: zoneconf.c,v 1.93 2001/09/25 23:01:15 gson Exp $ */
#include <config.h>
@ -631,9 +631,10 @@ ns_zone_reusable(dns_zone_t *zone, cfg_obj_t *zconfig) {
else
cfilename = NULL;
zfilename = dns_zone_getfile(zone);
if (cfilename == NULL || zfilename == NULL ||
strcmp(cfilename, zfilename) != 0)
return (ISC_FALSE);
if (!((cfilename == NULL && zfilename == NULL) ||
(cfilename != NULL && cfilename != NULL &&
strcmp(cfilename, zfilename) == 0)))
return (ISC_FALSE);
return (ISC_TRUE);
}