mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
make sure we give an error for unknown lockingX locktype bits
This commit is contained in:
parent
136b9752fc
commit
72cb43b912
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user