Fix the loop unrolling inside resolve_ads().
authorJeremy Allison <jra@samba.org>
Mon, 30 Apr 2012 23:32:51 +0000 (16:32 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sat, 30 Jun 2012 11:43:52 +0000 (13:43 +0200)
commite4d9909be5f7c8c022d2ee22d3259a6b412d4fc9
tree8595eb4930f3f1f2671341d32e187cfa2ff439a7
parentf7cbb0289c81fb73422c424f8dcffc5890be5204
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.

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