summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-15 08:50:26 +0200
committerVolker Lendecke <vl@samba.org>2010-08-16 22:39:23 +0200
commit6f85247494e04657a11e0a05933bdc2da788277e (patch)
tree158986275351ec22b507c5fc13309c42b7706823
parent3e28c05e98485c0cd3ffa3855314128400f32ad9 (diff)
downloadsamba-6f85247494e04657a11e0a05933bdc2da788277e.tar.gz
samba-6f85247494e04657a11e0a05933bdc2da788277e.tar.bz2
samba-6f85247494e04657a11e0a05933bdc2da788277e.zip
s3: Remove smbd_server_fd() from fake_sendfile
-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 f909fd696d..cf63c36a9d 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2810,7 +2810,8 @@ static ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos,
memset(buf + ret, '\0', cur_read - ret);
}
- if (write_data(smbd_server_fd(),buf,cur_read) != cur_read) {
+ if (write_data(fsp->conn->sconn->sock, buf, cur_read)
+ != cur_read) {
SAFE_FREE(buf);
return -1;
}