mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Allow to set or unset resume_handle in netconnenum in rpcclient.
Guenther
(This used to be commit f1b93c24fe
)
This commit is contained in:
parent
8ae2afa3c8
commit
4489ad0998
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user