summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-11 01:34:14 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-11 01:34:14 +0000
commit57970fd4e29ec6d90540049147e763bd69ee9e04 (patch)
treeb6fd722ac07d4cad2b61c5d8b0d7cc1d34aae9f5 /source3
parentcc24c353bb79b18819873d7afb02f704d9a89fec (diff)
downloadsamba-57970fd4e29ec6d90540049147e763bd69ee9e04.tar.gz
samba-57970fd4e29ec6d90540049147e763bd69ee9e04.tar.bz2
samba-57970fd4e29ec6d90540049147e763bd69ee9e04.zip
make sure we give an error for unknown lockingX locktype bits
(This used to be commit 72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 0de0e15274..9d5d34e410 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3722,6 +3722,13 @@ int reply_lockingX(connection_struct *conn, char *inbuf,char *outbuf,int length,
CHECK_FSP(fsp,conn);
data = smb_buf(inbuf);
+
+ if (locktype & (LOCKING_ANDX_CANCEL_LOCK | LOCKING_ANDX_CHANGE_LOCKTYPE)) {
+ /* we don't support these - and CANCEL_LOCK makes w2k
+ and XP reboot so I don't really want to be
+ compatible! (tridge) */
+ return ERROR_NT(NT_STATUS_NOT_SUPPORTED);
+ }
/* Check if this is an oplock break on a file
we have granted an oplock on.