mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
smbd: Add a paranoia check for leases
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
b6b7c15758
commit
551f85464b
@ -347,6 +347,12 @@ static void lease_timeout_handler(struct tevent_context *ctx,
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Paranoia check: There can only be one fsp_lease per lease
|
||||
* key
|
||||
*/
|
||||
SMB_ASSERT(fsp->lease == lease);
|
||||
|
||||
lck = get_existing_share_mode_lock(
|
||||
talloc_tos(), fsp->file_id);
|
||||
if (lck == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user