smbd: fix the handling of create_options to pass RAW-OPEN
[samba.git] / source / smbd / open.c
index 2184e69d3745c936c4b683bc9116ccf41493d9b6..ea10cdc57995e8a807f6ff5586e445146fb2c57a 100644 (file)
@@ -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;
        }