summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c
index 64122199d7..f8371b92fe 100644
--- a/source4/libnet/libnet_user.c
+++ b/source4/libnet/libnet_user.c
@@ -31,10 +31,14 @@ NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
struct libnet_Lookup fp;
struct libnet_rpc_domain_open dom_io;
struct libnet_rpc_useradd user_io;
+ const char *address;
+ address = talloc_array(mem_ctx, const char, 8);
+
/* find domain pdc */
fp.in.hostname = r->in.domain_name;
fp.in.methods = NULL;
+ fp.out.address = &address;
status = libnet_LookupPdc(ctx, mem_ctx, &fp);
if (!NT_STATUS_IS_OK(status)) return status;