From 833ef6b678cba8820f26aa55e2273639377b593f Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Thu, 29 Jun 2006 20:26:11 +0000 Subject: 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) --- source4/libnet/libnet_lookup.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'source4/libnet/libnet_lookup.c') 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; } -- cgit