diff options
author | dougb <dougb@FreeBSD.org> | 2008-07-12 03:05:41 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2008-07-12 03:05:41 +0800 |
commit | 6c3e853c1e725d314beacb025a6d40ab9ad50c1a (patch) | |
tree | 3eea5ab7c4ad10fca18dbf8a89d1cde73a304080 /dns | |
parent | d865d32b62e59a30605fa6a5618f844a8788e21b (diff) | |
download | freebsd-ports-gnome-6c3e853c1e725d314beacb025a6d40ab9ad50c1a.tar.gz freebsd-ports-gnome-6c3e853c1e725d314beacb025a6d40ab9ad50c1a.tar.zst freebsd-ports-gnome-6c3e853c1e725d314beacb025a6d40ab9ad50c1a.zip |
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.
Diffstat (limited to 'dns')
-rw-r--r-- | dns/bind94/files/patch-lib_bind_check.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dns/bind94/files/patch-lib_bind_check.c b/dns/bind94/files/patch-lib_bind_check.c new file mode 100644 index 000000000000..ce0cabf2e192 --- /dev/null +++ b/dns/bind94/files/patch-lib_bind_check.c @@ -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]; + |