From 45a3c8275f374cba853ba92b3c1c2e404ce276c5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 11 Mar 2008 11:29:49 +0100 Subject: Allow to send no resume_handle in rpcclient's NetShareEnum* calls. Guenther (This used to be commit 7e178a3dc970f55ddb30b4fc467aaaa06ef35b0f) --- source3/rpcclient/cmd_srvsvc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/rpcclient/cmd_srvsvc.c') diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c index f6985cbc13c..0c447e03062 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: -- cgit