summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 3695b50d05..99ceb51731 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -530,7 +530,7 @@ files_struct *file_fsp(struct smb_request *req, uint16 fid)
return req->chain_fsp;
}
- fsp = file_fnum(smbd_server_conn, fid);
+ fsp = file_fnum(req->sconn, fid);
if (fsp != NULL) {
req->chain_fsp = fsp;
}