1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-07 09:49:30 +03:00

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
This commit is contained in:
Stefan Metzmacher
2012-06-08 11:19:00 +02:00
parent 4ae96bb952
commit 0d77585a41

View File

@ -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,