summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_rpc.c4
1 files changed, 1 insertions, 3 deletions
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)) {