Commit 6b2e5cd2 authored by Evan Hunt's avatar Evan Hunt

[master] fixed ixfr-from-difference error in previous commit

parent 79c2400d
...@@ -1312,13 +1312,17 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig, ...@@ -1312,13 +1312,17 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
INSIST(result == ISC_R_SUCCESS && obj != NULL); INSIST(result == ISC_R_SUCCESS && obj != NULL);
if (cfg_obj_isboolean(obj)) { if (cfg_obj_isboolean(obj)) {
ixfrdiff = cfg_obj_asboolean(obj); ixfrdiff = cfg_obj_asboolean(obj);
} else if (!strcasecmp(cfg_obj_asstring(obj), "primary") && } else if ((strcasecmp(cfg_obj_asstring(obj),
!strcasecmp(cfg_obj_asstring(obj), "master") && "primary") == 0 ||
strcasecmp(cfg_obj_asstring(obj),
"master") == 0) &&
ztype == dns_zone_master) ztype == dns_zone_master)
{ {
ixfrdiff = ISC_TRUE; ixfrdiff = ISC_TRUE;
} else if (!strcasecmp(cfg_obj_asstring(obj), "secondary") && } else if ((strcasecmp(cfg_obj_asstring(obj),
!strcasecmp(cfg_obj_asstring(obj), "slave") && "secondary") == 0 ||
strcasecmp(cfg_obj_asstring(obj),
"slave") == 0) &&
ztype == dns_zone_slave) ztype == dns_zone_slave)
{ {
ixfrdiff = ISC_TRUE; ixfrdiff = ISC_TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment