diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/rpctorture.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/source3/utils/rpctorture.c b/source3/utils/rpctorture.c index ff98c0a837..0933cf38c1 100644 --- a/source3/utils/rpctorture.c +++ b/source3/utils/rpctorture.c @@ -478,17 +478,12 @@ static void run_lsahandles(int numops, struct client_info *cli_info) DEBUG(0,("lsahandle test: connection failed\n")); return; } - /* open session. */ - if (!cli_nt_session_open(smb_cli, PIPE_LSARPC, &nt_pipe_fnum)) - { - DEBUG(0,("lsahandle test: session open failed\n")); - return; - } - for (i = 1; i <= numops * 100; i++) { + extern struct cli_state *rpc_smb_cli; + rpc_smb_cli = smb_cli; POLICY_HND pol; - if (!lsa_open_policy(smb_cli, nt_pipe_fnum, srv_name, &pol, False)) + if (!lsa_open_policy(srv_name, &pol, False)) { failed++; } @@ -499,9 +494,6 @@ static void run_lsahandles(int numops, struct client_info *cli_info) count++; } - /* close the session */ - cli_nt_session_close(smb_cli, nt_pipe_fnum); - /* close the rpc pipe */ rpcclient_stop(); |