]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that empty zonefile means the zonefile is not set and not used.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 22 Nov 2018 15:55:18 +0000 (15:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 22 Nov 2018 15:55:18 +0000 (15:55 +0000)
git-svn-id: file:///svn/unbound/trunk@4973 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/authzone.c

index 50c86f38028f929ed6cbdb7e71a6b126a92c562f..962b365e6559feefa84286a0ab2eb90dce4042aa 100644 (file)
@@ -8,6 +8,7 @@
        - Fix #4209: Crash in libunbound when called from getdns.
        - auth zone zonefiles can be in a chroot, the chroot directory
          components are removed before use.
+       - Fix that empty zonefile means the zonefile is not set and not used.
 
 21 November 2018: Wouter
        - Scrub NS records from NODATA responses as well.
index a25106bd2fa56a3501c724b24ab3ba6d7e2a04d6..18ea6389d3001734fd2afb0444b2f8bbd39cff4a 100644 (file)
@@ -4799,7 +4799,7 @@ xfr_write_after_update(struct auth_xfer* xfr, struct module_env* env)
        lock_basic_lock(&xfr->lock);
        lock_rw_unlock(&env->auth_zones->lock);
 
-       if(z->zonefile == NULL) {
+       if(z->zonefile == NULL || z->zonefile[0] == 0) {
                lock_rw_unlock(&z->lock);
                /* no write needed, no zonefile set */
                return;