From fbf112bd1684acf420b104e0e7d66721af47c676 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 19 Mar 2010 12:08:13 +0100 Subject: s3:smbd: disable sendfile if the echo handler is active metze --- source3/smbd/reply.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 175c0156e8..082775f1ae 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3454,6 +3454,10 @@ static void send_file_readX(connection_struct *conn, struct smb_request *req, goto nosendfile_read; } + if (smbd_server_conn->smb1.echo_handler.trusted_fde) { + goto nosendfile_read; + } + #if defined(WITH_SENDFILE) /* * We can only use sendfile on a non-chained packet -- cgit