summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-07 20:08:45 +0100
committerGünther Deschner <gd@samba.org>2008-01-07 20:13:26 +0100
commitd6659f8ac84d5b3f19fb16a739657240f835c358 (patch)
tree90520a8fdb91133b920a8b07054778995fe50ef6 /source3/lib
parent751fc874bec2cbc93b4a84067f3e7102f39bd76c (diff)
downloadsamba-d6659f8ac84d5b3f19fb16a739657240f835c358.tar.gz
samba-d6659f8ac84d5b3f19fb16a739657240f835c358.tar.bz2
samba-d6659f8ac84d5b3f19fb16a739657240f835c358.zip
In the local path of NetJoinDomain, try to get error string from libnetjoin.
Guenther (This used to be commit 0f0f0e13022da584b77e850fec2cef6169e1ac28)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/joindomain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index ceb7ca10d9..aa8ec6e0b5 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -78,6 +78,9 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx *mem_ctx,
r->in.modify_config = true;
werr = libnet_Join(mem_ctx, r);
+ if (!W_ERROR_IS_OK(werr) && r->out.error_string) {
+ libnetapi_set_error_string(mem_ctx, r->out.error_string);
+ }
TALLOC_FREE(r);
return werr;