Fix bad bugfix for bug #8910 - resolve_ads() code can return zero addresses and miss...
commit32fe0352c4935182aadba0563ce3a286e0c549b0
authorIra Cooper <ira@wakeful.net>
Wed, 30 May 2012 18:50:06 +0000 (30 11:50 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:49:30 +0000 (22 21:49 +0200)
tree6708f76c3c7cd4fbdc7f7bdf7d85ce079669bdbe
parent12443f27739c41410d389468230bd50ba74643f9
Fix bad bugfix for bug #8910 - resolve_ads() code can return zero addresses and miss valid DC IP addresses

Original code incorrectly used a while() instead of a for() loop.
We need to iterate over the entire array here.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 30 23:29:03 CEST 2012 on sn-devel-104
(cherry picked from commit fc7e1113c34819de6fc8053fb81ee2e0e970bec2)
(cherry picked from commit 6797759a36b50f82fb1f75a4cc9c2555a79073a2)
source3/libsmb/namequery.c