r15741: move smb2 request structures into the main smb request structs
[ira/wip.git] / source / ntvfs / simple / vfs_simple.c
index e0f0083630d5df1e893287bc896550dd67a445e6..9e5d4ae922d8eb528847bf949fbfd74880a0d277 100644 (file)
@@ -580,7 +580,9 @@ static NTSTATUS svfs_flush(struct ntvfs_module_context *ntvfs,
 
        switch (io->generic.level) {
        case RAW_FLUSH_FLUSH:
-               f = find_fd(private, io->flush.in.file.ntvfs);
+       case RAW_FLUSH_SMB2:
+               /* ignore the additional unknown option in SMB2 */
+               f = find_fd(private, io->generic.in.file.ntvfs);
                if (!f) {
                        return NT_STATUS_INVALID_HANDLE;
                }