diff options
author | Gerald Carter <jerry@samba.org> | 2003-01-15 17:22:48 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-01-15 17:22:48 +0000 |
commit | 4242eda183393b0535ac8ef880b4f441c60137af (patch) | |
tree | 661f28140c58a598567a22932406885a19c5ce7b /source3/rpc_client/cli_pipe.c | |
parent | 6999ff1d484ea8f1957b3479b24ec3fea228fdd0 (diff) | |
download | samba-4242eda183393b0535ac8ef880b4f441c60137af.tar.gz samba-4242eda183393b0535ac8ef880b4f441c60137af.tar.bz2 samba-4242eda183393b0535ac8ef880b4f441c60137af.zip |
merging some rpcclient and net functionality from HEAD
(This used to be commit 7a4c87484237308cb3ad0d671687da7e0f6e733b)
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index ac43d8994c..a241744466 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -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; /* @@ -1284,6 +1283,9 @@ BOOL cli_nt_session_open(struct cli_state *cli, const int pipe_idx) { int fnum; + /* At the moment we can't have more than one pipe open over + a cli connection. )-: */ + SMB_ASSERT(cli->nt_pipe_fnum == 0); /* The pipe index must fall within our array */ |