summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-13 17:41:36 +0200
committerVolker Lendecke <vlendec@samba.org>2011-04-13 18:59:19 +0200
commit4b3fe5247a6e16b1ad9f05269e9aa00e3120e36a (patch)
tree5ff4b730342726bcb74368e4041c172775085ba6 /source3/rpc_client
parent8b8014198c16a11f48e13e2c11f3114cd20ad8d3 (diff)
downloadsamba-4b3fe5247a6e16b1ad9f05269e9aa00e3120e36a.tar.gz
samba-4b3fe5247a6e16b1ad9f05269e9aa00e3120e36a.tar.bz2
samba-4b3fe5247a6e16b1ad9f05269e9aa00e3120e36a.zip
s3-cli_pipe: fix timeout in rpc_pipe_open_tcp_port().
Make sure we use a timeout of 60 seconds, not 60 milliseconds... This prevented us from successfully using the ncacn_ip_tcp client in a lot of places, I guess. Guenther Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 13 18:59:19 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index cf9e0e3666..02103e16f3 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2459,7 +2459,7 @@ static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
goto fail;
}
- status = open_socket_out(&addr, port, 60, &fd);
+ status = open_socket_out(&addr, port, 60*1000, &fd);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}