Add a patch from ISC to fix named-checkconf. The error condition was not
being properly tested for, so it would not report the error in some cases. This fix (or similar) will be in version 9.4.3.
This commit is contained in:
parent
04de7fe966
commit
5d352cdcfa
@ -1015,10 +1015,10 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
|
|||||||
isc_buffer_add(&b, strlen(zname));
|
isc_buffer_add(&b, strlen(zname));
|
||||||
tresult = dns_name_fromtext(dns_fixedname_name(&fixedname), &b,
|
tresult = dns_name_fromtext(dns_fixedname_name(&fixedname), &b,
|
||||||
dns_rootname, ISC_TRUE, NULL);
|
dns_rootname, ISC_TRUE, NULL);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (tresult != ISC_R_SUCCESS) {
|
||||||
cfg_obj_log(zconfig, logctx, ISC_LOG_ERROR,
|
cfg_obj_log(zconfig, logctx, ISC_LOG_ERROR,
|
||||||
"zone '%s': is not a valid name", zname);
|
"zone '%s': is not a valid name", zname);
|
||||||
tresult = ISC_R_FAILURE;
|
result = ISC_R_FAILURE;
|
||||||
} else {
|
} else {
|
||||||
char namebuf[DNS_NAME_FORMATSIZE];
|
char namebuf[DNS_NAME_FORMATSIZE];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user