summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index cf63c36a9d..fe5933876b 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2872,7 +2872,8 @@ static void sendfile_short_send(files_struct *fsp,
size_t to_write;
to_write = MIN(SHORT_SEND_BUFSIZE, smb_maxcnt - nread);
- if (write_data(smbd_server_fd(), buf, to_write) != to_write) {
+ if (write_data(fsp->conn->sconn->sock, buf, to_write)
+ != to_write) {
exit_server_cleanly("sendfile_short_send: "
"write_data failed");
}