git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smbd: fix the handling of create_options to pass RAW-OPEN
[samba.git]
/
source
/
smbd
/
open.c
diff --git
a/source/smbd/open.c
b/source/smbd/open.c
index 2184e69d3745c936c4b683bc9116ccf41493d9b6..ea10cdc57995e8a807f6ff5586e445146fb2c57a 100644
(file)
--- a/
source/smbd/open.c
+++ b/
source/smbd/open.c
@@
-2614,6
+2614,11
@@
NTSTATUS create_file_unixpath(connection_struct *conn,
goto fail;
}
+ if (create_options & NTCREATEX_OPTIONS_INVALID_PARAM_MASK) {
+ status = NT_STATUS_INVALID_PARAMETER;
+ goto fail;
+ }
+
if (req == NULL) {
oplock_request |= INTERNAL_OPEN_ONLY;
}