From 1101c6214415675fbd32377d539276ca19c4407f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 May 2010 15:19:45 -0700 Subject: Pass more SMB2 oplock tests. Only oplock stream tests left to fix. Jeremy. --- source3/smbd/smb2_break.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/smbd/smb2_break.c') diff --git a/source3/smbd/smb2_break.c b/source3/smbd/smb2_break.c index bd0fc566f0..a214da0f26 100644 --- a/source3/smbd/smb2_break.c +++ b/source3/smbd/smb2_break.c @@ -204,6 +204,12 @@ static struct tevent_req *smbd_smb2_oplock_break_send(TALLOC_CTX *mem_ctx, fsp_str_dbg(fsp), fsp->fnum )); + /* Are we awaiting a break message ? */ + if (fsp->oplock_timeout == NULL) { + tevent_req_nterror(req, NT_STATUS_INVALID_OPLOCK_PROTOCOL); + return tevent_req_post(req, ev); + } + if ((fsp->sent_oplock_break == BREAK_TO_NONE_SENT) || (break_to_none)) { result = remove_oplock(fsp); -- cgit