From 2c94123e86aeab33be3bfe70b75008bf4832b289 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 Sep 2006 22:11:14 +0000 Subject: r18876: Fix smbclient -L (This used to be commit a03fb81a9d16c9db787c539d63c13ecaf6d6f80d) --- source3/client/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/client/client.c b/source3/client/client.c index 2cc26f4e18..fe5ba45277 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -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)) { -- cgit