From: Günther Deschner Date: Wed, 7 May 2008 19:02:50 +0000 (+0200) Subject: dsgetdcname: remove invalid assumption in discover_dc_dns(). X-Git-Tag: samba-3.3.0pre1~1314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f48b2e844b673e99c84cb24f3c3718352ab93ce5;p=thirdparty%2Fsamba.git dsgetdcname: remove invalid assumption in discover_dc_dns(). Guenther --- diff --git a/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c index a21fc9a217f..981994ca43f 100644 --- a/source/libsmb/dsgetdcname.c +++ b/source/libsmb/dsgetdcname.c @@ -552,11 +552,6 @@ static NTSTATUS discover_dc_dns(TALLOC_CTX *mem_ctx, r->port = dcs[count].port; r->hostname = dcs[count].hostname; - if (!(flags & DS_IP_REQUIRED)) { - count++; - continue; - } - /* If we don't have an IP list for a name, lookup it up */ if (!dcs[i].ss_s) {