1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:rpcclient: introduce global rpcclient_cli_state

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-09-13 11:06:00 +02:00 committed by Andrew Bartlett
parent 1974dbe30c
commit 053b975900
2 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,7 @@ static unsigned int timeout = 0;
static enum dcerpc_transport_t default_transport = NCACN_NP;
struct user_auth_info *rpcclient_auth_info;
struct cli_state *rpcclient_cli_state;
/* List to hold groups of commands.
*
@ -1113,7 +1114,7 @@ out_free:
#endif
/* Load command lists */
rpcclient_cli_state = cli;
timeout = cli_set_timeout(cli, 10000);
cmd_set = rpcclient_command_list;
@ -1161,6 +1162,7 @@ out_free:
}
done:
rpcclient_cli_state = NULL;
if (cli != NULL) {
cli_shutdown(cli);
}

View File

@ -41,4 +41,6 @@ struct cmd_set {
const char *usage;
};
extern struct cli_state *rpcclient_cli_state;
#endif /* RPCCLIENT_H */