diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-10-02 13:02:07 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2012-10-09 03:21:07 +0200 |
commit | e65a24b59f1dc7d212a46014a1d7c2531263529f (patch) | |
tree | 34b0bfdbc9aec09958368b9772dcfef34ee44d9d /source4/rpc_server/dnsserver | |
parent | d70f3644a485ef53e6173ef81326ba6f065f418a (diff) | |
download | samba-e65a24b59f1dc7d212a46014a1d7c2531263529f.tar.gz samba-e65a24b59f1dc7d212a46014a1d7c2531263529f.tar.bz2 samba-e65a24b59f1dc7d212a46014a1d7c2531263529f.zip |
s4-rpc: dnsserver: Ignore DNS zones that are not used by RPC dnsserver
..TrustAnchors zone is not interpreted by RPC dnsserver code.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Oct 9 03:21:07 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/rpc_server/dnsserver')
-rw-r--r-- | source4/rpc_server/dnsserver/dnsdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/dnsserver/dnsdb.c b/source4/rpc_server/dnsserver/dnsdb.c index 9bf5ecf5ac..b5ad4702e7 100644 --- a/source4/rpc_server/dnsserver/dnsdb.c +++ b/source4/rpc_server/dnsserver/dnsdb.c @@ -124,6 +124,10 @@ struct dnsserver_zone *dnsserver_db_enumerate_zones(TALLOC_CTX *mem_ctx, z->partition = p; name = talloc_strdup(z, ldb_msg_find_attr_as_string(res->msgs[i], "name", NULL)); + if (strcmp(name, "..TrustAnchors") == 0) { + talloc_free(z); + continue; + } if (strcmp(name, "RootDNSServers") == 0) { talloc_free(name); z->name = talloc_strdup(z, "."); |