git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fa5fdb1
)
s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X functions.
author
Günther Deschner
<gd@samba.org>
Wed, 12 Jan 2011 12:32:10 +0000
(13:32 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 12 Jan 2011 12:32:10 +0000
(13:32 +0100)
Guenther
source3/lib/netapi/joindomain.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/joindomain.c
b/source3/lib/netapi/joindomain.c
index d17d2d82f8c016fab9bec02f0155ed6ee3878818..e5d28735ed764d3e0b71b997ee632f4d786b32ef 100644
(file)
--- 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);