1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

smbd: Use share_mode_entry's lease data in is_same_lease()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
Volker Lendecke 2018-09-19 14:29:23 +02:00 committed by Christof Schmitt
parent f33cb16278
commit 909147e8c1

View File

@ -2193,8 +2193,8 @@ static bool is_same_lease(const files_struct *fsp,
return smb2_lease_equal(fsp_client_guid(fsp),
&lease->lease_key,
&d->leases[e->lease_idx].client_guid,
&d->leases[e->lease_idx].lease_key);
&e->client_guid,
&e->lease_key);
}
static int map_lease_type_to_oplock(uint32_t lease_type)