summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d69ead9a75..abaf4c66c2 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -255,7 +255,7 @@ static int smb2_sendfile_send_data(struct smbd_smb2_read_state *state)
}
init_strict_lock_struct(fsp,
- state->in_file_id_volatile,
+ fsp->fnum,
in_offset,
in_length,
READ_LOCK,
@@ -497,7 +497,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
/* Fallback to synchronous. */
init_strict_lock_struct(fsp,
- in_file_id_volatile,
+ fsp->fnum,
in_offset,
in_length,
READ_LOCK,