diff options
author | Gerald Carter <jerry@samba.org> | 2000-07-14 17:04:04 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-07-14 17:04:04 +0000 |
commit | 233b074f490b3b01f3a462284aa8117536df0082 (patch) | |
tree | 2f3800677da5fad906c2581c65ff15a21332c384 /source/rpc_client/cli_pipe.c | |
parent | 3d00e969df1800dadbb91fd8c410e9ce87188551 (diff) | |
download | samba-233b074f490b3b01f3a462284aa8117536df0082.tar.gz |
More functions merged from TNG for rpcclient. They don't all work
currently as I have to do something about the policy handle caching
issues.
--jerry
Diffstat (limited to 'source/rpc_client/cli_pipe.c')
-rw-r--r-- | source/rpc_client/cli_pipe.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index ade31dbb5be..d39f742579a 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/rpc_client/cli_pipe.c @@ -522,7 +522,7 @@ static BOOL create_rpc_bind_req(prs_struct *rpc_out, BOOL do_auth, uint32 rpc_ca prs_struct auth_info; int auth_len = 0; - prs_init(&auth_info, 0, 4, MARSHALL); + prs_init(&auth_info, MAX_PDU_FRAG_LEN, 4, MARSHALL); if (do_auth) { RPC_HDR_AUTH hdr_auth; @@ -1087,20 +1087,13 @@ BOOL rpc_pipe_bind(struct cli_state *cli, char *pipe_name, char *my_name) prs_struct rdata; BOOL do_auth = (cli->ntlmssp_cli_flgs != 0); uint32 rpc_call_id; - char buffer[MAX_PDU_FRAG_LEN]; DEBUG(5,("Bind RPC Pipe[%x]: %s\n", cli->nt_pipe_fnum, pipe_name)); if (!valid_pipe_name(pipe_name, &abstract, &transfer)) return False; - prs_init(&rpc_out, 0, 4, MARSHALL); - - /* - * Use the MAX_PDU_FRAG_LEN buffer to store the bind request. - */ - - prs_give_memory( &rpc_out, buffer, sizeof(buffer), False); + prs_init(&rpc_out, MAX_PDU_FRAG_LEN, 4, MARSHALL); rpc_call_id = get_rpc_call_id(); |