summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-23 21:42:25 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-24 07:43:59 +0100
commit1f13d512d45eaa99023bc41cf6ec03db8cb4508e (patch)
treecd6c492ecb48bcabcc83d14f53ab8ab632674fb5 /source3/rpc_client
parent11a97d60d931c4a7c431647353e2c423a729c6ea (diff)
downloadsamba-1f13d512d45eaa99023bc41cf6ec03db8cb4508e.tar.gz
samba-1f13d512d45eaa99023bc41cf6ec03db8cb4508e.tar.bz2
samba-1f13d512d45eaa99023bc41cf6ec03db8cb4508e.zip
s3:rpc_client: we need to pass a non-blocking socket to tstream_bsd_existing_socket()
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Feb 24 07:43:59 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/rpc_transport_sock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_client/rpc_transport_sock.c b/source3/rpc_client/rpc_transport_sock.c
index fa5c71d7d0..58f194f262 100644
--- a/source3/rpc_client/rpc_transport_sock.c
+++ b/source3/rpc_client/rpc_transport_sock.c
@@ -31,6 +31,8 @@ NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd,
int ret;
NTSTATUS status;
+ set_blocking(fd, false);
+
ret = tstream_bsd_existing_socket(mem_ctx, fd, &stream);
if (ret != 0) {
status = map_nt_error_from_unix(errno);