diff options
author | Tim Potter <tpot@samba.org> | 2002-11-15 00:20:55 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-11-15 00:20:55 +0000 |
commit | e0d81b77287da51f9efc83e0c32a7d8d298d720c (patch) | |
tree | 3435f9ff0b282426a36b30b7d879cd66d678fde3 /source3/rpc_client/cli_pipe.c | |
parent | ae23dfd427bc69b747e20f2217163cb863aa2c71 (diff) | |
download | samba-e0d81b77287da51f9efc83e0c32a7d8d298d720c.tar.gz samba-e0d81b77287da51f9efc83e0c32a7d8d298d720c.tar.bz2 samba-e0d81b77287da51f9efc83e0c32a7d8d298d720c.zip |
A cool idea from mbp: create a big shared library of all Samba objects
which we can use to link against Samba unit test programs. Now we can
compile and link unit tests without having to create 4MB executables
for each program
It's called libbigballofmud.so both to discourage casual usage and
also to reflect what the dependencies within Samba have become.
(This used to be commit fdce4be719d7a81f25a4bae05934a5590038ec47)
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 90f08148ef..632dd30c3a 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -844,7 +844,7 @@ 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; + uint32 callid = 0; /* * how much will we send this time @@ -862,10 +862,9 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num, return False; } - if (data_left == prs_offset(data)) { + if (data_left == prs_offset(data)) flags |= RPC_FLG_FIRST; - callid = 0; - } + if (data_left < max_data) flags |= RPC_FLG_LAST; /* |