summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-24 20:24:33 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-24 20:24:33 +0000
commitf8b82a7b9507e11595bc924def179dc1d7d79a54 (patch)
tree1dab991fc42fecce86a98d45cb47fcb0dd087c38 /source3/utils
parent2752e372b64337de24edef52575ddc7da0ed8d04 (diff)
downloadsamba-f8b82a7b9507e11595bc924def179dc1d7d79a54.tar.gz
samba-f8b82a7b9507e11595bc924def179dc1d7d79a54.tar.bz2
samba-f8b82a7b9507e11595bc924def179dc1d7d79a54.zip
first stages of removing struct cli_state* and uint16 fnum from all
msrpc client code. the intent is to hide / abstract / associate connection info behind policy handles. this makes the msrpc functions look more and more like their nt equivalents. who-hou! (This used to be commit c01b18e632aede6fce7264ef6971d7ddba945cfb)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/rpctorture.c14
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();