summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_srvsvc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-11 11:29:49 +0100
committerGünther Deschner <gd@samba.org>2008-03-11 11:33:07 +0100
commit45a3c8275f374cba853ba92b3c1c2e404ce276c5 (patch)
treec41394774380311fe27e48cb534acc9844b84975 /source3/rpcclient/cmd_srvsvc.c
parent67536eddc34e225562e31e500cf64c03d63ad1cc (diff)
downloadsamba-45a3c8275f374cba853ba92b3c1c2e404ce276c5.tar.gz
samba-45a3c8275f374cba853ba92b3c1c2e404ce276c5.tar.bz2
samba-45a3c8275f374cba853ba92b3c1c2e404ce276c5.zip
Allow to send no resume_handle in rpcclient's NetShareEnum* calls.
Guenther (This used to be commit 7e178a3dc970f55ddb30b4fc467aaaa06ef35b0f)
Diffstat (limited to 'source3/rpcclient/cmd_srvsvc.c')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index f6985cbc13..0c447e0306 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -269,6 +269,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli,
NTSTATUS status;
uint32_t totalentries = 0;
uint32_t resume_handle = 0;
+ uint32_t *resume_handle_p = NULL;
uint32 preferred_len = 0xffffffff, i;
if (argc > 3) {
@@ -282,6 +283,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli,
if (argc == 3) {
resume_handle = atoi(argv[2]);
+ resume_handle_p = &resume_handle;
}
ZERO_STRUCT(info_ctr);
@@ -338,7 +340,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli,
&info_ctr,
preferred_len,
&totalentries,
- &resume_handle,
+ resume_handle_p,
&result);
break;
case NDR_SRVSVC_NETSHAREENUMALL:
@@ -347,7 +349,7 @@ static WERROR cmd_srvsvc_net_share_enum_int(struct rpc_pipe_client *cli,
&info_ctr,
preferred_len,
&totalentries,
- &resume_handle,
+ resume_handle_p,
&result);
break;
default: