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>
struct share_mode_lock *lck,
struct server_id blocker)
{
- TDB_DATA key = locking_key(&lck->data->id);
+ struct file_id id = share_mode_lock_file_id(lck);
+ TDB_DATA key = locking_key(&id);
struct tevent_req *req = NULL, *subreq = NULL;
struct share_mode_watch_state *state = NULL;