summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb_server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c
index 516babf4b7..13c0a9770f 100644
--- a/source4/smb_server/smb_server.c
+++ b/source4/smb_server/smb_server.c
@@ -825,6 +825,7 @@ void smbsrv_accept(struct server_connection *conn)
{
struct smbsrv_connection *smb_conn;
char *socket_addr;
+ int fd;
DEBUG(5,("smbsrv_accept\n"));
@@ -863,6 +864,9 @@ void smbsrv_accept(struct server_connection *conn)
conn->private_data = smb_conn;
+ fd = socket_get_fd(conn->socket);
+ set_blocking(fd, True);
+
/* setup the DCERPC server subsystem */
dcesrv_init_context(&smb_conn->dcesrv);