Fix the loop unrolling inside resolve_ads(). If we don't get an IP list don't use...
authorJeremy Allison <jra@samba.org>
Mon, 30 Apr 2012 18:05:51 +0000 (11:05 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:49:09 +0000 (21:49 +0200)
commit7bc591a621a8ba4b83b25501e247a01c2be80750
treee9d873abbf7f3b416f05be7c7b60d6205e2a6d94
parentb160634cda800528873b31a3f95d9e1a2f3c1c5b
Fix the loop unrolling inside resolve_ads(). If we don't get an IP list don't use interpret_string_addr(), as this only returns one address, use interpret_string_addr_internal() instead.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 30 23:21:16 CEST 2012 on sn-devel-104
(cherry picked from commit 1270cfb45ffa0bbcacf7254b5b45f492a8dcde77)

The last 4 patches address bug #8910 (resolve_ads() code can return zero
addresses and miss valid DC IP addresses).
(cherry picked from commit 79658018ec73755bbd495963f977af61b4497bfb)
source3/libsmb/namequery.c