diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-25 15:29:05 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-29 18:11:19 +0200 |
commit | 13cf592bb8478453dccd4d78bdb4dabec7aeddc2 (patch) | |
tree | 400e11652751e321e0a8487e11094f91bdff092b /source3/rpc_client/ndr.c | |
parent | 6bd5a2a3739938f95fce23ab2da652c9b5a48111 (diff) | |
download | samba-13cf592bb8478453dccd4d78bdb4dabec7aeddc2.tar.gz samba-13cf592bb8478453dccd4d78bdb4dabec7aeddc2.tar.bz2 samba-13cf592bb8478453dccd4d78bdb4dabec7aeddc2.zip |
s3:rpc_client: remove unused code, we handle transport failures in the transport layer now
metze
Diffstat (limited to 'source3/rpc_client/ndr.c')
-rw-r--r-- | source3/rpc_client/ndr.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/rpc_client/ndr.c b/source3/rpc_client/ndr.c index 4e8634d3b9..5675878b4b 100644 --- a/source3/rpc_client/ndr.c +++ b/source3/rpc_client/ndr.c @@ -183,20 +183,6 @@ NTSTATUS cli_do_rpc_ndr(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr_recv(req, mem_ctx); - /* - * NT_STATUS_IO_TIMEOUT indicates network problem, - * tear the connection apart. - */ - if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) { - if (cli->transport->transport == NCACN_IP_TCP || - cli->transport->transport == NCALRPC) { - rpccli_close_sock_fd(cli); - } - - if (cli->transport->transport == NCACN_NP) { - rpccli_close_np_fd(cli); - } - } fail: TALLOC_FREE(frame); return status; |