summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_setinfo.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-11-03 17:36:08 +0100
committerJeremy Allison <jra@samba.org>2020-11-10 19:49:34 +0000
commit84dba041a35d75657a2738157fdddc83aeb7a2a0 (patch)
treef8661e8b89fbc59d741e65ccc5a7010b1bf92d62 /source3/smbd/smb2_setinfo.c
parent2fe1e601c90607062418cafb64cf6c063179ebde (diff)
downloadsamba-84dba041a35d75657a2738157fdddc83aeb7a2a0.tar.gz
locking: Make share_mode_watch_send() take "share_mode_lock"
This makes clear that this can only be done under a lock Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_setinfo.c')
-rw-r--r--source3/smbd/smb2_setinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_setinfo.c b/source3/smbd/smb2_setinfo.c
index bd2caab862a..c8071a73498 100644
--- a/source3/smbd/smb2_setinfo.c
+++ b/source3/smbd/smb2_setinfo.c
@@ -269,7 +269,7 @@ static struct tevent_req *delay_rename_for_lease_break(struct tevent_req *req,
subreq = share_mode_watch_send(
rename_state,
ev,
- lck->data->id,
+ lck,
(struct server_id){0});
if (subreq == NULL) {