summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/dsgetdcname.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index a21fc9a217..981994ca43 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) {