summaryrefslogtreecommitdiff
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
commit4ae96bb952be47a5043d9906da57a9482e12c21d (patch)
tree0fa0116659118ac31a41df07a802b1c0ca5410bc
parent3b2e5929eca008dd6ad2f6ab5436eeb55ab69607 (diff)
downloadsamba-4ae96bb952be47a5043d9906da57a9482e12c21d.tar.gz
samba-4ae96bb952be47a5043d9906da57a9482e12c21d.tar.bz2
samba-4ae96bb952be47a5043d9906da57a9482e12c21d.zip
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
-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 e4e0cac8b1..c86bcfedd3 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;