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-4.0.0alpha6~801^2~1451 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaef936523b9fbd62e53b7b8f8ee6576da525eb4;p=thirdparty%2Fsamba.git dsgetdcname: remove invalid assumption in discover_dc_dns(). Guenther (This used to be commit f48b2e844b673e99c84cb24f3c3718352ab93ce5) --- diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index a21fc9a217f..981994ca43f 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/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) {