1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

r18877: More WERROR/NTSTATUS bugs

(This used to be commit 88a928a233)
This commit is contained in:
Volker Lendecke 2006-09-24 22:11:36 +00:00 committed by Gerald (Jerry) Carter
parent 2c94123e86
commit e1fa2ea721

View File

@ -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;