summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/libsmbclient.c4
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,