summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-21 01:14:23 +0100
committerGünther Deschner <gd@samba.org>2008-03-21 04:16:21 +0100
commit4489ad0998e62f0f0e24194908f5b2b8ac3b012c (patch)
tree201eb594b64417976d1f32a2b9551909e0698f31
parent8ae2afa3c883c2b48cf56346798945949e945c77 (diff)
downloadsamba-4489ad0998e62f0f0e24194908f5b2b8ac3b012c.tar.gz
samba-4489ad0998e62f0f0e24194908f5b2b8ac3b012c.tar.bz2
samba-4489ad0998e62f0f0e24194908f5b2b8ac3b012c.zip
Allow to set or unset resume_handle in netconnenum in rpcclient.
Guenther (This used to be commit f1b93c24fea0441deb5319f6fc4df0373d0dc939)
-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)) {