From 2b7fe67f4d02f861c9a4bfe823e648f0a995e613 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 22 May 2005 10:23:01 +0000 Subject: r6933: Add a couple of helper functions for creating nbt names. (This used to be commit b896daf11c3efb1b3ca939575da9dab82b395777) --- source4/libnet/libnet_rpc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index 1f1812e261..82dc06a0f6 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -43,9 +43,7 @@ static NTSTATUS libnet_find_pdc_generic(struct libnet_context *ctx, TALLOC_CTX * return NT_STATUS_OK; } - name.name = r->generic.in.domain_name; - name.type = NBT_NAME_PDC; - name.scope = NULL; + make_nbt_name(&name, r->generic.in.domain_name, NBT_NAME_PDC); status = resolve_name(&name, mem_ctx, &address); if (!NT_STATUS_IS_OK(status)) { -- cgit