summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-10 13:40:27 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-10 13:40:27 +0000
commit735ee07018f4514771d26e01b41b0f02295b8b48 (patch)
tree0150180c800e37f374e6c37131fa1dc15d36e46f /source3
parentc01663c1a941d867a148aed522e6735504c6f64b (diff)
downloadsamba-735ee07018f4514771d26e01b41b0f02295b8b48.tar.gz
samba-735ee07018f4514771d26e01b41b0f02295b8b48.tar.bz2
samba-735ee07018f4514771d26e01b41b0f02295b8b48.zip
don't treat a packet as a oplock break unless it is a request, not a
reply! (This used to be commit 45b8f1c92cf7ecae35240e72741e5ac952587c58)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clientgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index e37974b570..3b6403fe73 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -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);