summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_wkssvc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-03 22:12:31 +0100
committerGünther Deschner <gd@samba.org>2007-12-07 11:54:01 +0100
commit61dbd449b8918e52d7de8011dec0cb5f79bb25c5 (patch)
treeebea00c199157cfac72ed3a494c528938e44135a /source3/rpcclient/cmd_wkssvc.c
parent783afeb5fa563bcfd6635fd07076447f0c586dc5 (diff)
downloadsamba-61dbd449b8918e52d7de8011dec0cb5f79bb25c5.tar.gz
Fix build with new werror based pidl rpc.
Guenther (This used to be commit 0e8fdfac8a7754c105f01bd21816a7940c20e878)
Diffstat (limited to 'source3/rpcclient/cmd_wkssvc.c')
-rw-r--r--source3/rpcclient/cmd_wkssvc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c
index d32a4c591f7..44b77decd29 100644
--- a/source3/rpcclient/cmd_wkssvc.c
+++ b/source3/rpcclient/cmd_wkssvc.c
@@ -64,20 +64,25 @@ static WERROR cmd_wkssvc_getjoininformation(struct rpc_pipe_client *cli,
const char *name_buffer;
enum wkssvc_NetJoinStatus name_type;
NTSTATUS status;
+ WERROR werr;
server_name = cli->cli->desthost;
name_buffer = "";
status = rpccli_wkssvc_NetrGetJoinInformation(cli, mem_ctx,
- server_name, &name_buffer,
- &name_type);
+ server_name,
+ &name_buffer,
+ &name_type,
+ &werr);
if (!NT_STATUS_IS_OK(status)) {
return ntstatus_to_werror(status);
}
- printf("%s (%d)\n", name_buffer, name_type);
+ if (W_ERROR_IS_OK(werr)) {
+ printf("%s (%d)\n", name_buffer, name_type);
+ }
- return WERR_OK;
+ return werr;
}
static WERROR cmd_wkssvc_messagebuffersend(struct rpc_pipe_client *cli,