dns: fix comments and make s4/libcli/resolve dns resolver working
authorAlexander Bokovoy <ab@samba.org>
Tue, 15 May 2012 13:28:44 +0000 (16:28 +0300)
committerAlexander Bokovoy <ab@samba.org>
Wed, 23 May 2012 14:51:49 +0000 (17:51 +0300)
commitf32d43763d35fe386bfa1e9f7997b7eb1014b20c
treea8eca37805ecfd0f47acb57203328ad88422a6d7
parent1feb31246d00cdadf7624925a324f7f591c26b82
dns: fix comments and make s4/libcli/resolve dns resolver working

After migrating to use libaddns, reply_to_addrs() needed to change the
way answers are iterated through. Originally libroken implementation
gave all answers as separate records with last one being explicitly NULL.
libaddns unmarshalling code gives all non-NULL answers and should be
iterated with explicit reply->num_answers in use.
lib/addns/dnsquery.c
source4/libcli/resolve/dns_ex.c