Add a patch to fix named-checkconf. The error condition was not being

properly tested for, so it would not report the error in some cases.

Thanks to marck@FreeBSD and mark@ISC for tracking this one down.
This commit is contained in:
Doug Barton 2008-07-11 19:05:41 +00:00
parent af80cfb8c7
commit 35eb96538b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216717

View File

@ -0,0 +1,15 @@
--- lib/bind9/check.c.orig 2007-09-12 22:04:01.000000000 -0700
+++ lib/bind9/check.c 2008-07-11 11:51:01.000000000 -0700
@@ -1015,10 +1015,10 @@
isc_buffer_add(&b, strlen(zname));
tresult = dns_name_fromtext(dns_fixedname_name(&fixedname), &b,
dns_rootname, ISC_TRUE, NULL);
- if (result != ISC_R_SUCCESS) {
+ if (tresult != ISC_R_SUCCESS) {
cfg_obj_log(zconfig, logctx, ISC_LOG_ERROR,
"zone '%s': is not a valid name", zname);
- tresult = ISC_R_FAILURE;
+ result = ISC_R_FAILURE;
} else {
char namebuf[DNS_NAME_FORMATSIZE];