1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Fix SMB2 lock tests up to cancel-by-close.

Jeremy.
This commit is contained in:
Jeremy Allison 2010-05-06 09:07:49 -07:00
parent a77a8a5e35
commit 516f7c571e

View File

@ -997,6 +997,10 @@ bool brl_unlock_windows_default(struct messaging_context *msg_ctx,
for (i = 0; i < br_lck->num_locks; i++) {
struct lock_struct *lock = &locks[i];
if (IS_PENDING_LOCK(lock->lock_type)) {
continue;
}
/* Only remove our own locks that match in start, size, and flavour. */
if (brl_same_context(&lock->context, &plock->context) &&
lock->fnum == plock->fnum &&