diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-04 13:57:00 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-04 11:35:59 -0700 |
commit | 0670975261c5f29394f9e9d25f899a7de948dad1 (patch) | |
tree | 4f6f2797de2e5a7e2e694a0d2b42d92851d787ea /source3/smbd | |
parent | 38e43961c01f6f491b069e7106fe2a2ec80bd840 (diff) | |
download | samba-0670975261c5f29394f9e9d25f899a7de948dad1.tar.gz samba-0670975261c5f29394f9e9d25f899a7de948dad1.tar.bz2 samba-0670975261c5f29394f9e9d25f899a7de948dad1.zip |
smbd: Fix an ancient oplock bug
If we get an oplock break response, we forgot to remove the oplock break
timeout.
Found by stopping raw.oplock.exclusive5 after the 2nd open and watching a debug
level 10 log. This amends 08a9de89 from 2007.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/oplock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 21792bdee4..7b0a979220 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -150,6 +150,8 @@ static void downgrade_file_oplock(files_struct *fsp) sconn->oplocks.exclusive_open--; sconn->oplocks.level_II_open++; fsp->sent_oplock_break = NO_BREAK_SENT; + + TALLOC_FREE(fsp->oplock_timeout); } /**************************************************************************** |