summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-04 14:20:00 +0200
committerJeremy Allison <jra@samba.org>2013-09-04 22:36:23 +0200
commit6096a59d6bc0fd5f77794e40d903eaafecf9407f (patch)
treee9b595dd53b044746b593ddeb8b49c5afa3e07f0
parent0670975261c5f29394f9e9d25f899a7de948dad1 (diff)
downloadsamba-6096a59d6bc0fd5f77794e40d903eaafecf9407f.tar.gz
samba-6096a59d6bc0fd5f77794e40d903eaafecf9407f.tar.bz2
samba-6096a59d6bc0fd5f77794e40d903eaafecf9407f.zip
smbd: Add a paranoia check to oplock_timeout_handler
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 4 22:36:24 CEST 2013 on sn-devel-104
-rw-r--r--source3/smbd/oplock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 7b0a979220..434bafa3ca 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -323,6 +323,8 @@ static void oplock_timeout_handler(struct tevent_context *ctx,
{
files_struct *fsp = (files_struct *)private_data;
+ SMB_ASSERT(fsp->sent_oplock_break != NO_BREAK_SENT);
+
/* Remove the timed event handler. */
TALLOC_FREE(fsp->oplock_timeout);
DEBUG(0, ("Oplock break failed for file %s -- replying anyway\n",