summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);