dsgetdcname: remove invalid assumption in discover_dc_dns().
authorGünther Deschner <gd@samba.org>
Wed, 7 May 2008 19:02:50 +0000 (21:02 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 9 May 2008 12:59:19 +0000 (14:59 +0200)
Guenther
(This used to be commit f48b2e844b673e99c84cb24f3c3718352ab93ce5)

source3/libsmb/dsgetdcname.c

index a21fc9a217fc4a0deecf2d82ceb0fccc8592ce18..981994ca43fe2a26f109bba8b9f16f09be86488d 100644 (file)
@@ -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) {