1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r18876: Fix smbclient -L

This commit is contained in:
Volker Lendecke 2006-09-24 22:11:14 +00:00 committed by Gerald (Jerry) Carter
parent 6d5d7bf4bb
commit a03fb81a9d

View File

@ -2726,6 +2726,7 @@ static BOOL browse_host_rpc(BOOL sort)
struct rpc_pipe_client *pipe_hnd;
TALLOC_CTX *mem_ctx;
uint32 enum_hnd = 0;
struct srvsvc_NetShareCtr1 ctr1;
union srvsvc_NetShareCtr ctr;
int i;
uint32 level;
@ -2746,9 +2747,11 @@ static BOOL browse_host_rpc(BOOL sort)
return False;
}
ZERO_STRUCT(ctr1);
level = 1;
ctr.ctr1 = &ctr1;
status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &level, &ctr,
status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, "", &level, &ctr,
0xffffffff, &numentries, &enum_hnd);
if (!NT_STATUS_IS_OK(status)) {