s3: Remove smbd_server_fd() from fake_sendfile
authorVolker Lendecke <vl@samba.org>
Sun, 15 Aug 2010 06:50:26 +0000 (08:50 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Aug 2010 20:39:23 +0000 (22:39 +0200)
source3/smbd/reply.c

index f909fd696d2f9dd0ed544c946c410017067ce4f4..cf63c36a9d4bba6d5eeb0991d1c1b05135c47a3e 100644 (file)
@@ -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;
                }