freebsd-ports/dns/bind94/files/patch-lib_bind_check.c
Doug Barton 35eb96538b 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.
2008-07-11 19:05:41 +00:00

15 lines
557 B
C

--- 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];