summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-05-29 00:34:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:59 -0500
commitb8b580dbcb0468306b89e0a37589700dee6ca7b8 (patch)
tree2a76bf95bc2a01d3513e8aa7a25d24646485fb87 /source4/libcli
parentdc919c25343211b25ed8c55577bc5451791cbde4 (diff)
downloadsamba-b8b580dbcb0468306b89e0a37589700dee6ca7b8.tar.gz
samba-b8b580dbcb0468306b89e0a37589700dee6ca7b8.tar.bz2
samba-b8b580dbcb0468306b89e0a37589700dee6ca7b8.zip
r23176: Note that we only return one DC from this call at the moment.
Andrew Bartlett (This used to be commit 4fee8a7b77d01c7cb8b32911016158f2ff2cf8f6)
Diffstat (limited to 'source4/libcli')
-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;