"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bin/check/named-checkconf.c" between
bind-9.17.2.tar.xz and bind-9.17.3.tar.xz

About: BIND 9.17 implements the Domain Name System (DNS) protocols for the Internet (see the Release Notes). Source code distribution. Unstable development release.

named-checkconf.c  (bind-9.17.2.tar.xz):named-checkconf.c  (bind-9.17.3.tar.xz)
skipping to change at line 188 skipping to change at line 188
static isc_result_t static isc_result_t
configure_zone(const char *vclass, const char *view, const cfg_obj_t *zconfig, configure_zone(const char *vclass, const char *view, const cfg_obj_t *zconfig,
const cfg_obj_t *vconfig, const cfg_obj_t *config, const cfg_obj_t *vconfig, const cfg_obj_t *config,
isc_mem_t *mctx, bool list) { isc_mem_t *mctx, bool list) {
int i = 0; int i = 0;
isc_result_t result; isc_result_t result;
const char *zclass; const char *zclass;
const char *zname; const char *zname;
const char *zfile = NULL; const char *zfile = NULL;
const cfg_obj_t *maps[4]; const cfg_obj_t *maps[4];
const cfg_obj_t *mastersobj = NULL; const cfg_obj_t *primariesobj = NULL;
const cfg_obj_t *inviewobj = NULL; const cfg_obj_t *inviewobj = NULL;
const cfg_obj_t *zoptions = NULL; const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *classobj = NULL; const cfg_obj_t *classobj = NULL;
const cfg_obj_t *typeobj = NULL; const cfg_obj_t *typeobj = NULL;
const cfg_obj_t *fileobj = NULL; const cfg_obj_t *fileobj = NULL;
const cfg_obj_t *dlzobj = NULL; const cfg_obj_t *dlzobj = NULL;
const cfg_obj_t *dbobj = NULL; const cfg_obj_t *dbobj = NULL;
const cfg_obj_t *obj = NULL; const cfg_obj_t *obj = NULL;
const cfg_obj_t *fmtobj = NULL; const cfg_obj_t *fmtobj = NULL;
dns_masterformat_t masterformat; dns_masterformat_t masterformat;
skipping to change at line 282 skipping to change at line 282
(strcasecmp(cfg_obj_asstring(typeobj), "master") != 0) && (strcasecmp(cfg_obj_asstring(typeobj), "master") != 0) &&
(strcasecmp(cfg_obj_asstring(typeobj), "redirect") != 0)) (strcasecmp(cfg_obj_asstring(typeobj), "redirect") != 0))
{ {
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);
} }
/* /*
* Is the redirect zone configured as a slave? * Is the redirect zone configured as a slave?
*/ */
if (strcasecmp(cfg_obj_asstring(typeobj), "redirect") == 0) { if (strcasecmp(cfg_obj_asstring(typeobj), "redirect") == 0) {
cfg_map_get(zoptions, "masters", &mastersobj); cfg_map_get(zoptions, "primaries", &primariesobj);
if (mastersobj != NULL) { if (primariesobj == NULL) {
cfg_map_get(zoptions, "masters", &primariesobj);
}
if (primariesobj != NULL) {
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);
} }
} }
if (zfile == NULL) { if (zfile == NULL) {
return (ISC_R_FAILURE); return (ISC_R_FAILURE);
} }
obj = NULL; obj = NULL;
if (get_maps(maps, "check-dup-records", &obj)) { if (get_maps(maps, "check-dup-records", &obj)) {
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)