summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-15 08:51:28 +0200
committerVolker Lendecke <vl@samba.org>2010-08-16 22:39:23 +0200
commit59645506a092ed2d9b49d901c45968d10ea3b6a2 (patch)
tree4f1750129d629ef032eab5edecbf031a06e5b912
parent6f85247494e04657a11e0a05933bdc2da788277e (diff)
downloadsamba-59645506a092ed2d9b49d901c45968d10ea3b6a2.tar.gz
samba-59645506a092ed2d9b49d901c45968d10ea3b6a2.tar.bz2
samba-59645506a092ed2d9b49d901c45968d10ea3b6a2.zip
s3: Remove smbd_server_fd() from sendfile_short_send
-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");
}