From 13cf592bb8478453dccd4d78bdb4dabec7aeddc2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Mar 2010 15:29:05 +0100 Subject: s3:rpc_client: remove unused code, we handle transport failures in the transport layer now metze --- source3/rpc_client/ndr.c | 14 -------------- 1 file changed, 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; -- cgit