summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-04-30 16:57:42 -0700
committerJeremy Allison <jra@samba.org>2009-04-30 16:57:42 -0700
commitf3af298e5b1457ba8661fd0e3f5304ad3175f3ba (patch)
tree43c32ead3cae70fc6d26b01dc2fa844dc93c9388 /source3/rpc_client
parent384c1aaa8ee8879b6cc4bc34dfc4d3c9fa11667b (diff)
downloadsamba-f3af298e5b1457ba8661fd0e3f5304ad3175f3ba.tar.gz
samba-f3af298e5b1457ba8661fd0e3f5304ad3175f3ba.tar.bz2
samba-f3af298e5b1457ba8661fd0e3f5304ad3175f3ba.zip
Cause cli_close to return an NTSTATUS.
Jeremy.
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/rpc_transport_np.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c
index dceacf6815..73d23d8857 100644
--- a/source3/rpc_client/rpc_transport_np.c
+++ b/source3/rpc_client/rpc_transport_np.c
@@ -30,15 +30,12 @@ struct rpc_transport_np_state {
static int rpc_transport_np_state_destructor(struct rpc_transport_np_state *s)
{
- bool ret;
-
if (s->cli->fd == -1) {
DEBUG(10, ("socket was closed, no need to send close request.\n"));
return 0;
}
- ret = cli_close(s->cli, s->fnum);
- if (!ret) {
+ if (!NT_STATUS_IS_OK(cli_close(s->cli, s->fnum))) {
DEBUG(1, ("rpc_transport_np_state_destructor: cli_close "
"failed on pipe %s. Error was %s\n", s->pipe_name,
cli_errstr(s->cli)));