mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
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
This commit is contained in:
parent
d70f3644a4
commit
e65a24b59f
@ -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, ".");
|
||||
|
Loading…
x
Reference in New Issue
Block a user