summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-12 13:32:10 +0100
committerGünther Deschner <gd@samba.org>2011-01-12 13:32:10 +0100
commit415a390ba87f2227eee5312eb3838beb9a7abc30 (patch)
tree05e01713f1dadddd7631f9824580226078482e26 /source3
parentfa5fdb1a4e1033944f3fdb5584e950b7ed9ee632 (diff)
downloadsamba-415a390ba87f2227eee5312eb3838beb9a7abc30.tar.gz
samba-415a390ba87f2227eee5312eb3838beb9a7abc30.tar.bz2
samba-415a390ba87f2227eee5312eb3838beb9a7abc30.zip
s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X functions.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/joindomain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index d17d2d82f8..e5d28735ed 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -314,6 +314,10 @@ WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
goto done;
}
+ if (!W_ERROR_IS_OK(werr)) {
+ goto done;
+ }
+
*r->out.name_buffer = talloc_strdup(ctx, buffer);
W_ERROR_HAVE_NO_MEMORY(*r->out.name_buffer);