Fix bad bugfix for bug #8910 - resolve_ads() code can return zero addresses and miss...
authorIra Cooper <ira@wakeful.net>
Wed, 30 May 2012 18:50:06 +0000 (11:50 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 31 May 2012 18:22:24 +0000 (20:22 +0200)
commit6797759a36b50f82fb1f75a4cc9c2555a79073a2
treee2f59228b3cb05af9125e015ce48c1932645db24
parentf68121db6f78680a328acec11f475ccca3184412
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)
source3/libsmb/namequery.c