summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 6f5154e5fa..b75d4d1ffd 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -426,7 +426,7 @@ ssize_t vfs_pwrite_data(struct smb_request *req,
/* VFS_RECVFILE must drain the socket
* before returning. */
req->unread_bytes = 0;
- return SMB_VFS_RECVFILE(smbd_server_fd(),
+ return SMB_VFS_RECVFILE(req->sconn->sock,
fsp,
offset,
N);