summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/finddcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/finddcs.c b/source4/libcli/finddcs.c
index 09967c72b1..0f639b084f 100644
--- a/source4/libcli/finddcs.c
+++ b/source4/libcli/finddcs.c
@@ -118,6 +118,9 @@ static void finddcs_name_resolved(struct composite_context *ctx)
state->ctx->status = resolve_name_recv(ctx, state, &address);
if (!composite_is_ok(state->ctx)) return;
+ /* TODO: This should try and find all the DCs, and give the
+ * caller them in the order they responded */
+
state->num_dcs = 1;
state->dcs = talloc_array(state, struct nbt_dc_name, state->num_dcs);
if (composite_nomem(state->dcs, state->ctx)) return;