summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-06-29 20:26:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:38 -0500
commit833ef6b678cba8820f26aa55e2273639377b593f (patch)
tree47eebb55698a5b680bd25c84d45b6d059e76544c /source4/libnet
parent828e95e81f31b49c8419e33f01575863570c25d1 (diff)
downloadsamba-833ef6b678cba8820f26aa55e2273639377b593f.tar.gz
samba-833ef6b678cba8820f26aa55e2273639377b593f.tar.bz2
samba-833ef6b678cba8820f26aa55e2273639377b593f.zip
r16693: Name type should be passed further down the lookup engine instead
of assuming only PDC name type. Also, fix the comment. rafal (This used to be commit 436c8a721114815af8eb8c96ebdfe32c1875faaa)
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_lookup.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source4/libnet/libnet_lookup.c b/source4/libnet/libnet_lookup.c
index 2ef62901da..8356678d72 100644
--- a/source4/libnet/libnet_lookup.c
+++ b/source4/libnet/libnet_lookup.c
@@ -163,19 +163,17 @@ NTSTATUS libnet_LookupHost(struct libnet_context *ctx, TALLOC_CTX *mem_ctx,
/**
- * Sends asynchronous LookupPdc request
+ * Sends asynchronous LookupDCs request
*/
struct composite_context* libnet_LookupDCs_send(struct libnet_context *ctx,
TALLOC_CTX *mem_ctx,
struct libnet_LookupDCs *io)
{
- struct messaging_context *msg_ctx = messaging_client_init(mem_ctx, ctx->event_ctx);
struct composite_context *c;
- c = finddcs_send(mem_ctx,
- io->in.domain_name,
- NBT_NAME_PDC,
- NULL, ctx->name_res_methods,
- ctx->event_ctx, msg_ctx);
+ struct messaging_context *msg_ctx = messaging_client_init(mem_ctx, ctx->event_ctx);
+
+ c = finddcs_send(mem_ctx, io->in.domain_name, io->in.name_type,
+ NULL, ctx->name_res_methods, ctx->event_ctx, msg_ctx);
return c;
}