summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 07e4b4c16b..5ce8a3730b 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -1326,8 +1326,8 @@ void brl_close_fnum(struct byte_range_lock *br_lck)
}
}
- if (num_deleted_windows_locks) {
- /* Reduce the Windows lock reference count on this dev/ino pair. */
+ if(lp_posix_locking(fsp->conn->cnum) && num_deleted_windows_locks) {
+ /* Reduce the Windows lock POSIX reference count on this dev/ino pair. */
reduce_windows_lock_ref_count(fsp, num_deleted_windows_locks);
}
}