summaryrefslogtreecommitdiffstats
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-24 22:11:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:40 -0500
commit2c94123e86aeab33be3bfe70b75008bf4832b289 (patch)
tree5b5a58db1d8c9c954fc345e6a07d01c5a179d8ba /source3/client
parent6f3c6a46f95eba3cd53ea4ca03a8dc3d64dccf55 (diff)
downloadsamba-2c94123e86aeab33be3bfe70b75008bf4832b289.tar.gz
samba-2c94123e86aeab33be3bfe70b75008bf4832b289.tar.xz
samba-2c94123e86aeab33be3bfe70b75008bf4832b289.zip
r18876: Fix smbclient -L
(This used to be commit a03fb81a9d16c9db787c539d63c13ecaf6d6f80d)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 2cc26f4e18f..fe5ba45277d 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)) {