summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-08 11:19:00 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-09 15:02:47 +0200
commit0d77585a4197783ab8b0f8cb854eddd1e9b7941b (patch)
tree3561440db6133094c4d63c86307f8a36b4718667 /source3
parent4ae96bb952be47a5043d9906da57a9482e12c21d (diff)
downloadsamba-0d77585a4197783ab8b0f8cb854eddd1e9b7941b.tar.gz
samba-0d77585a4197783ab8b0f8cb854eddd1e9b7941b.tar.bz2
samba-0d77585a4197783ab8b0f8cb854eddd1e9b7941b.zip
s3:smb2_read: pass fsp->fnum to init_strict_lock_struct()
fsp->fnum is the same as in_file_id_volatile. When we start to support durable handles we should pass in_file_id_persistent. metze
Diffstat (limited to 'source3')
-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,