diff options
-rw-r--r-- | source3/utils/smbtree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index b2a4e240ff..31ed763565 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -135,6 +135,7 @@ static BOOL get_rpc_shares(struct cli_state *cli, struct rpc_pipe_client *pipe_hnd; TALLOC_CTX *mem_ctx; uint32 enum_hnd; + struct srvsvc_NetShareCtr1 ctr1; union srvsvc_NetShareCtr ctr; uint32 numentries; int i; @@ -156,6 +157,10 @@ static BOOL get_rpc_shares(struct cli_state *cli, return False; } + ZERO_STRUCT(ctr1); + level = 1; + ctr.ctr1 = &ctr1; + status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &info_level, &ctr, 0xffffffff, &numentries, |