summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-08 11:19:00 +0200
committerKarolin Seeger <kseeger@samba.org>2012-06-22 21:50:48 +0200
commit1db059cd350a0776e56c93e8b76518174a6a1005 (patch)
treed6c5ee6a0f9fe5ee5e092d7f25421e546c464226
parent300dde079fbf3363706b8fe22110621486b79238 (diff)
downloadsamba-1db059cd350a0776e56c93e8b76518174a6a1005.tar.gz
s3:smb2_lock: use fsp->fnum as locking context
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 Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit c47b3ff25fcc62be3bc96ecf797990e61f5d08ef)
-rw-r--r--source3/smbd/smb2_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c
index f4611eb06dd..be403eefe8e 100644
--- a/source3/smbd/smb2_lock.c
+++ b/source3/smbd/smb2_lock.c
@@ -335,7 +335,7 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- locks[i].smblctx = in_file_id_volatile;
+ locks[i].smblctx = fsp->fnum;
locks[i].offset = in_locks[i].offset;
locks[i].count = in_locks[i].length;