]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- printout localzone for duplicate local-zone warnings.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 26 May 2017 11:09:16 +0000 (11:09 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 26 May 2017 11:09:16 +0000 (11:09 +0000)
git-svn-id: file:///svn/unbound/trunk@4193 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/localzone.c

index 082e2b7f05e4122b9d06d2ade1ea314a3439e63c..fdbcf4b6ec0e1ae383101c37fe63af25de4cbe0e 100644 (file)
@@ -2,6 +2,7 @@
        - Fix #1270: unitauth.c doesn't compile with higher warning level
          and optimization
        - exec_prefix is by default equal to prefix.
+       - printout localzone for duplicate local-zone warnings.
 
 24 May 2017: Wouter
        - authzone cname chain, no rrset duplicates, wildcard doesn't change
index dcce46e863e403f9886a57f1145d32f5d661903e..9b83081d15952e027224d9889fc396d17e25be72 100644 (file)
@@ -187,7 +187,9 @@ lz_enter_zone_dname(struct local_zones* zones, uint8_t* nm, size_t len,
        lock_rw_wrlock(&z->lock);
        if(!rbtree_insert(&zones->ztree, &z->node)) {
                struct local_zone* oldz;
-               log_warn("duplicate local-zone");
+               char str[256];
+               dname_str(nm, str);
+               log_warn("duplicate local-zone %s", str);
                lock_rw_unlock(&z->lock);
                /* save zone name locally before deallocation,
                 * otherwise, nm is gone if we zone_delete now. */