summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-04-20 13:13:38 +0200
committerKarolin Seeger <kseeger@samba.org>2016-06-02 15:08:18 +0200
commit4759f64e94e01e32b36f048d20bf4c94e4398ef3 (patch)
treea55eaaed69c6977168a4e1497cb91e001cdf2198
parent0ab3ef3aae8431790173eb41999239ad6b10af9c (diff)
downloadsamba-4759f64e94e01e32b36f048d20bf4c94e4398ef3.tar.gz
smbd: Fix an assert
This might stumble over stale entries Signed-off-by: Volker Lendecke <vl@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=11844 Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Thu Jun 2 15:08:18 CEST 2016 on sn-devel-104
-rw-r--r--source3/smbd/oplock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index f50d3b95b6b..9996b8b3c6d 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -190,6 +190,7 @@ bool update_num_read_oplocks(files_struct *fsp, struct share_mode_lock *lck)
/*
* If we're the only one, we don't need a brlock entry
*/
+ remove_stale_share_mode_entries(d);
SMB_ASSERT(d->num_share_modes == 1);
SMB_ASSERT(EXCLUSIVE_OPLOCK_TYPE(d->share_modes[0].op_type));
return true;