summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-10 06:01:11 +0000
committerTim Potter <tpot@samba.org>2001-08-10 06:01:11 +0000
commit62f7f6a022dea6fd4fbe514dcb3154bda334a07f (patch)
tree6e0c5d170098d48f91a8176abafa9618364c8d42 /source3/rpc_client
parent2ccfea3de7b2b7dc0be2438c3adb3f7be82a2dfc (diff)
downloadsamba-62f7f6a022dea6fd4fbe514dcb3154bda334a07f.tar.gz
samba-62f7f6a022dea6fd4fbe514dcb3154bda334a07f.tar.bz2
samba-62f7f6a022dea6fd4fbe514dcb3154bda334a07f.zip
Use the new client error api.
(This used to be commit 688da3c41dd944f7f69083518d25e9edbc55406f)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 4bbbac17ed..d4e161e212 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -81,7 +81,8 @@ static BOOL rpc_read(struct cli_state *cli, prs_struct *rdata, uint32 data_to_re
DEBUG(5,("rpc_read: num_read = %d, read offset: %d, to read: %d\n",
num_read, stream_offset, data_to_read));
- if (cli_error(cli, &eclass, &ecode, NULL) &&
+ if (cli_is_dos_error(cli) &&
+ cli_dos_error(cli, &eclass, &ecode) &&
(eclass != ERRDOS && ecode != ERRmoredata)) {
DEBUG(0,("rpc_read: Error %d/%u in cli_read\n",
eclass, (unsigned int)ecode));
@@ -468,7 +469,8 @@ static BOOL rpc_api_pipe(struct cli_state *cli, uint16 cmd, prs_struct *data, pr
prs_give_memory(&hps, hdr_data, sizeof(hdr_data), False);
num_read = cli_read(cli, cli->nt_pipe_fnum, hdr_data, 0, RPC_HEADER_LEN+RPC_HDR_RESP_LEN);
- if (cli_error(cli, &eclass, &ecode, NULL) &&
+ if (cli_is_dos_error(cli) &&
+ cli_dos_error(cli, &eclass, &ecode) &&
(eclass != ERRDOS && ecode != ERRmoredata)) {
DEBUG(0,("rpc_api_pipe: cli_read error : %d/%d\n",
eclass, ecode));