s3:locking: make use of share_mode_lock_file_id() in share_mode_watch_send()
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Aug 2022 10:08:03 +0000 (12:08 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (00:34 +0000)
commiteef0c8e25bcedb6b0028866c7540c6feeabb0dd0
tree967bd2bde9b3532bfe48cae2d71d8c5b78461876
parent557323ca03713c0f0f7b1b5d0f6116095ec405e0
s3:locking: make use of share_mode_lock_file_id() in share_mode_watch_send()

We should avoid dereference 'struct share_mode_lock' as much as possible.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c