mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
don't treat a packet as a oplock break unless it is a request, not a
reply!
(This used to be commit 45b8f1c92c
)
This commit is contained in:
parent
c01663c1a9
commit
735ee07018
@ -52,7 +52,8 @@ static BOOL cli_receive_smb(struct cli_state *cli)
|
||||
|
||||
if (ret) {
|
||||
/* it might be an oplock break request */
|
||||
if (CVAL(cli->inbuf,smb_com) == SMBlockingX &&
|
||||
if (!(CVAL(cli->inbuf, smb_flg) & FLAG_REPLY) &&
|
||||
CVAL(cli->inbuf,smb_com) == SMBlockingX &&
|
||||
SVAL(cli->inbuf,smb_vwv6) == 0 &&
|
||||
SVAL(cli->inbuf,smb_vwv7) == 0) {
|
||||
if (cli->use_oplocks) cli_process_oplock(cli);
|
||||
|
Loading…
Reference in New Issue
Block a user