diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-10-23 20:13:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:37 -0500 |
commit | 37ffa791393adb6b92ac98d0ad03676db11fa6e9 (patch) | |
tree | c6c22cf14d5391bdd2fc76ec46648b66a1ecb627 /source3/libsmb | |
parent | 24f7144930b9235fa2a83e4833853906016ea114 (diff) | |
download | samba-37ffa791393adb6b92ac98d0ad03676db11fa6e9.tar.gz samba-37ffa791393adb6b92ac98d0ad03676db11fa6e9.tar.bz2 samba-37ffa791393adb6b92ac98d0ad03676db11fa6e9.zip |
r19469: Another user of NetShareEnum
(This used to be commit 3a1be1626c1e285da70a8fd688a494eb633eee2f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/libsmbclient.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index 6be7dbe8d6..75c66d2e72 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -2476,6 +2476,7 @@ net_share_enum_rpc(struct cli_state *cli, uint32 enum_hnd; uint32 info_level = 1; uint32 preferred_len = 0xffffffff; + struct srvsvc_NetShareCtr1 ctr1; union srvsvc_NetShareCtr ctr; void *mem_ctx; struct rpc_pipe_client *pipe_hnd; @@ -2497,6 +2498,9 @@ net_share_enum_rpc(struct cli_state *cli, return -1; } + ZERO_STRUCT(ctr1); + ctr.ctr1 = &ctr1; + /* Issue the NetShareEnum RPC call and retrieve the response */ enum_hnd = 0; result = rpccli_srvsvc_NetShareEnum(pipe_hnd, |