From 415a390ba87f2227eee5312eb3838beb9a7abc30 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 12 Jan 2011 13:32:10 +0100 Subject: s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X functions. Guenther --- source3/lib/netapi/joindomain.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/netapi') 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); -- cgit