s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X functions.
authorGünther Deschner <gd@samba.org>
Wed, 12 Jan 2011 12:32:10 +0000 (13:32 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 12 Jan 2011 12:32:10 +0000 (13:32 +0100)
Guenther

source3/lib/netapi/joindomain.c

index d17d2d82f8c016fab9bec02f0155ed6ee3878818..e5d28735ed764d3e0b71b997ee632f4d786b32ef 100644 (file)
@@ -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);