From 4fee8a7b77d01c7cb8b32911016158f2ff2cf8f6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 29 May 2007 00:34:31 +0000 Subject: [PATCH] r23176: Note that we only return one DC from this call at the moment. Andrew Bartlett --- source/libcli/finddcs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libcli/finddcs.c b/source/libcli/finddcs.c index 09967c72b16..0f639b084f3 100644 --- a/source/libcli/finddcs.c +++ b/source/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; -- 2.11.4.GIT