s4-dnsserver: Build a dns name tree for correct enumeration
commit6e800bfba708124077defab3c9379db201f4c43c
authorAmitay Isaacs <amitay@gmail.com>
Mon, 24 Oct 2011 06:20:46 +0000 (24 17:20 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 2 Nov 2011 04:26:54 +0000 (2 15:26 +1100)
tree93fffed0ed9946dba27a085492e472804d076390
parent0d3aff732483cf1a48cb9ea6af16537fc11be547
s4-dnsserver: Build a dns name tree for correct enumeration

The result of EnumRecords/EnumRecords2 RPC calls, is a list of
dns records that are one level below in the name hierarchy starting
from the search name. This patch builds a tree of names to get
the list of records one level below the search names and correctly
count the number of child records for each of those.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/rpc_server/dnsserver/dcerpc_dnsserver.c
source4/rpc_server/dnsserver/dnsdata.c
source4/rpc_server/dnsserver/dnsserver.h