diff options
author | Günther Deschner <gd@samba.org> | 2008-01-07 18:41:49 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-01-07 19:38:35 +0100 |
commit | 528d253cc834235213f29411a058485681260140 (patch) | |
tree | 35050772757448f4eb82a6e9eb52349469f2819c /source3 | |
parent | 0b92d8bc79172dc587f53ce4b35a8fa3128ae0ea (diff) | |
download | samba-528d253cc834235213f29411a058485681260140.tar.gz samba-528d253cc834235213f29411a058485681260140.tar.bz2 samba-528d253cc834235213f29411a058485681260140.zip |
Rearrange order of libnet join context init.
Guenther
(This used to be commit 89669c66f27fb47c9769d1058e29bff83f862752)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/netapi/joindomain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c index 8fe6193f40..ceb7ca10d9 100644 --- a/source3/lib/netapi/joindomain.c +++ b/source3/lib/netapi/joindomain.c @@ -33,13 +33,13 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx *mem_ctx, struct libnet_JoinCtx *r = NULL; WERROR werr; - werr = libnet_init_JoinCtx(mem_ctx, &r); - W_ERROR_NOT_OK_RETURN(werr); - if (!domain_name) { return WERR_INVALID_PARAM; } + werr = libnet_init_JoinCtx(mem_ctx, &r); + W_ERROR_NOT_OK_RETURN(werr); + r->in.domain_name = talloc_strdup(mem_ctx, domain_name); W_ERROR_HAVE_NO_MEMORY(r->in.domain_name); |