summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-07 18:41:49 +0100
committerGünther Deschner <gd@samba.org>2008-01-07 19:38:35 +0100
commit528d253cc834235213f29411a058485681260140 (patch)
tree35050772757448f4eb82a6e9eb52349469f2819c /source3
parent0b92d8bc79172dc587f53ce4b35a8fa3128ae0ea (diff)
downloadsamba-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.c6
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);