summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-24 22:11:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:40 -0500
commite1fa2ea7216909501c41bcc0499daea1c57ae06e (patch)
treebe6dcdaff3188e6cba3570e3b6a8b889c3fdcc63
parent2c94123e86aeab33be3bfe70b75008bf4832b289 (diff)
downloadsamba-e1fa2ea7216909501c41bcc0499daea1c57ae06e.tar.gz
samba-e1fa2ea7216909501c41bcc0499daea1c57ae06e.tar.bz2
samba-e1fa2ea7216909501c41bcc0499daea1c57ae06e.zip
r18877: More WERROR/NTSTATUS bugs
(This used to be commit 88a928a2332b96124935c547cf5ee16163865d84)
-rw-r--r--source3/utils/smbtree.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c
index 1feb5b7e1d..b2a4e240ff 100644
--- a/source3/utils/smbtree.c
+++ b/source3/utils/smbtree.c
@@ -135,7 +135,6 @@ static BOOL get_rpc_shares(struct cli_state *cli,
struct rpc_pipe_client *pipe_hnd;
TALLOC_CTX *mem_ctx;
uint32 enum_hnd;
- WERROR werr;
union srvsvc_NetShareCtr ctr;
uint32 numentries;
int i;
@@ -157,10 +156,12 @@ static BOOL get_rpc_shares(struct cli_state *cli,
return False;
}
- werr = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &info_level, &ctr,
- 0xffffffff, &numentries, &enum_hnd);
+ status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL,
+ &info_level, &ctr,
+ 0xffffffff, &numentries,
+ &enum_hnd);
- if (!W_ERROR_IS_OK(werr)) {
+ if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(mem_ctx);
cli_rpc_pipe_close(pipe_hnd);
return False;