From e4e3aecea69a9ee351cd7b385f9ce851305446b4 Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Wed, 30 May 2012 11:50:06 -0700 Subject: [PATCH] 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 Autobuild-Date: Wed May 30 23:29:03 CEST 2012 on sn-devel-104 (cherry picked from commit fc7e1113c34819de6fc8053fb81ee2e0e970bec2) --- source3/libsmb/namequery.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index d0ab62f..4ba7204 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1934,7 +1934,7 @@ static NTSTATUS resolve_ads(const char *name, *return_count = 0; - while ( i < numdcs && (*return_count