diff options
author | Jeremy Allison <jra@samba.org> | 2003-04-28 18:42:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-04-28 18:42:34 +0000 |
commit | a330bf170eb8e78200367c90833cbc90255642cb (patch) | |
tree | 7df9b18dfc1c4da9b01d256a56721c0da908b55d /source/rpc_client | |
parent | bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d (diff) | |
download | samba-a330bf170eb8e78200367c90833cbc90255642cb.tar.gz samba-a330bf170eb8e78200367c90833cbc90255642cb.tar.xz samba-a330bf170eb8e78200367c90833cbc90255642cb.zip |
Fixes from Ronan Waide <waider@waider.ie> for large RPC writes.
Jeremy.
Diffstat (limited to 'source/rpc_client')
-rw-r--r-- | source/rpc_client/cli_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index b3e8deeeef4..f8472f3cfc1 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/rpc_client/cli_pipe.c @@ -952,6 +952,7 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num, uint32 auth_len, max_data, data_left, data_sent; BOOL ret = False; BOOL auth_verify, auth_seal, auth_schannel; + uint32 callid = 0; fstring dump_name; auth_verify = ((cli->ntlmssp_srv_flgs & NTLMSSP_NEGOTIATE_SIGN) != 0); @@ -977,7 +978,6 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num, uint32 data_len, send_size; uint8 flags = 0; uint32 crc32 = 0; - uint32 callid = 0; uint32 auth_padding = 0; RPC_AUTH_NETSEC_CHK verf; @@ -1013,7 +1013,7 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num, if (data_left == prs_offset(data)) flags |= RPC_FLG_FIRST; - if (data_left < max_data) + if (data_left <= max_data) flags |= RPC_FLG_LAST; /* * Write out the RPC header and the request header. |