mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Paranoia check: There can only be one fsp_lease per lease
|
||||||
|
* key
|
||||||
|
*/
|
||||||
|
SMB_ASSERT(fsp->lease == lease);
|
||||||
|
|
||||||
lck = get_existing_share_mode_lock(
|
lck = get_existing_share_mode_lock(
|
||||||
talloc_tos(), fsp->file_id);
|
talloc_tos(), fsp->file_id);
|
||||||
if (lck == NULL) {
|
if (lck == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user