summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-04-28 18:43:46 +0000
committerJeremy Allison <jra@samba.org>2003-04-28 18:43:46 +0000
commit512c11c445ecd3df30f6a9b93c838cc6bf28126f (patch)
tree63f0a8f4837ace143acf6aadcb7676f6ea9ba471
parent81256ecbb977351b4d6a992df17be4b107071935 (diff)
downloadsamba-512c11c445ecd3df30f6a9b93c838cc6bf28126f.tar.gz
samba-512c11c445ecd3df30f6a9b93c838cc6bf28126f.tar.bz2
samba-512c11c445ecd3df30f6a9b93c838cc6bf28126f.zip
Fixes from Ronan Waide <waider@waider.ie> for large RPC writes.
Jeremy. (This used to be commit 30512b7d3ea3470e4aca08638a5c0ea14791a6e7)
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index a0be3d9774..1c089e589b 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -925,6 +925,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);
@@ -950,7 +951,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;
@@ -986,7 +986,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.