diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-11-12 21:44:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:15 -0500 |
commit | dfd5b1b0203e592a7707056627395b52f8da1017 (patch) | |
tree | 08de1accd040d0b0caa6b5f17767e2ff6261fbdd /source4/libnet | |
parent | 72565088bcb044bb790e25a0ea55f77cfa9fd9aa (diff) | |
download | samba-dfd5b1b0203e592a7707056627395b52f8da1017.tar.gz samba-dfd5b1b0203e592a7707056627395b52f8da1017.tar.bz2 samba-dfd5b1b0203e592a7707056627395b52f8da1017.zip |
r11705: Fix segfaulting create user function.
rafal
(This used to be commit 6b0c083c9b714bf25709e1db3b2113eb8305e8ef)
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_user.c | 4 |
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; |