summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/smb2_read.c')
-rw-r--r--source3/smbd/smb2_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index 0e08ff4a52..289cbc0208 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -252,7 +252,7 @@ static int smb2_sendfile_send_data(struct smbd_smb2_read_state *state)
}
init_strict_lock_struct(fsp,
- fsp->fnum,
+ fsp->op->global->open_persistent_id,
in_offset,
in_length,
READ_LOCK,
@@ -479,7 +479,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
/* Fallback to synchronous. */
init_strict_lock_struct(fsp,
- fsp->fnum,
+ fsp->op->global->open_persistent_id,
in_offset,
in_length,
READ_LOCK,