summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index fc00f8a178..a8549829fa 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -809,6 +809,7 @@ static WERROR cmd_srvsvc_net_conn_enum(struct rpc_pipe_client *cli,
NTSTATUS status;
uint32_t total_entries = 0;
uint32_t resume_handle = 0;
+ uint32_t *resume_handle_p = NULL;
uint32_t level = 1;
const char *path = "IPC$";
@@ -827,6 +828,7 @@ static WERROR cmd_srvsvc_net_conn_enum(struct rpc_pipe_client *cli,
if (argc >= 4) {
resume_handle = atoi(argv[3]);
+ resume_handle_p = &resume_handle;
}
ZERO_STRUCT(info_ctr);
@@ -852,7 +854,7 @@ static WERROR cmd_srvsvc_net_conn_enum(struct rpc_pipe_client *cli,
&info_ctr,
0xffffffff,
&total_entries,
- &resume_handle,
+ resume_handle_p,
&result);
if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result)) {