diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-24 11:45:33 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-24 11:45:33 +0000 |
commit | bbb11d4a0dc02a6125855620e0a59a6b24107e4d (patch) | |
tree | eccf9712b09d9936a5e8eed05c72596a3e8035c7 /source4/torture/torture.c | |
parent | 5e64ecac2f2de4888d83872aaf273e3c1882c772 (diff) | |
download | samba-bbb11d4a0dc02a6125855620e0a59a6b24107e4d.tar.gz samba-bbb11d4a0dc02a6125855620e0a59a6b24107e4d.tar.bz2 samba-bbb11d4a0dc02a6125855620e0a59a6b24107e4d.zip |
* prepared the dcerpc subsystem for adding the RPC over TCP transport
* fixed a uninitialised variable bug in pidl (found by valgrind)
(This used to be commit 8bce61b8af6351c72c0dd84dc61b49d8aeb1fbbd)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index e13933a231..c07b516baa 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -143,14 +143,11 @@ NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p, return NT_STATUS_UNSUCCESSFUL; } - if (!(*p = dcerpc_pipe_init(cli->tree))) { - return NT_STATUS_NO_MEMORY; - } - - status = dcerpc_pipe_open_smb(*p, pipe_name, pipe_uuid, pipe_version); + status = dcerpc_pipe_open_smb(p, cli->tree, pipe_name, pipe_uuid, pipe_version); if (!NT_STATUS_IS_OK(status)) { printf("Open of pipe '%s' failed with error (%s)\n", pipe_name, nt_errstr(status)); + torture_close_connection(cli); return status; } @@ -163,17 +160,8 @@ NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p, /* close a rpc connection to a named pipe */ NTSTATUS torture_rpc_close(struct dcerpc_pipe *p) { - union smb_close io; - NTSTATUS status; - - io.close.level = RAW_CLOSE_CLOSE; - io.close.in.fnum = p->fnum; - io.close.in.write_time = 0; - status = smb_raw_close(p->tree, &io); - dcerpc_pipe_close(p); - - return status; + return NT_STATUS_OK; } |