smbd: Add a paranoia check to oplock_timeout_handler
authorVolker Lendecke <vl@samba.org>
Wed, 4 Sep 2013 12:20:00 +0000 (14:20 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 4 Sep 2013 20:36:23 +0000 (22:36 +0200)
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

source3/smbd/oplock.c

index 7b0a979220767df6dc361360d74ff18aa5cdedd5..434bafa3ca0535d3c4ca665a2708a06b98a6c018 100644 (file)
@@ -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",