diff options
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/ntvfs_generic.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c index 8b80e9db80..89481e5038 100644 --- a/source4/ntvfs/ntvfs_generic.c +++ b/source4/ntvfs/ntvfs_generic.c @@ -1268,8 +1268,15 @@ _PUBLIC_ NTSTATUS ntvfs_map_close(struct ntvfs_module_context *ntvfs, return NT_STATUS_INVALID_LEVEL; case RAW_CLOSE_SPLCLOSE: - cl2->close.level = RAW_CLOSE_CLOSE; - cl2->close.in.file.ntvfs= cl->splclose.in.file.ntvfs; + cl2->generic.level = RAW_CLOSE_CLOSE; + cl2->generic.in.file.ntvfs = cl->splclose.in.file.ntvfs; + break; + + case RAW_CLOSE_SMB2: + cl2->generic.level = RAW_CLOSE_CLOSE; + cl2->generic.in.file.ntvfs = cl->smb2.in.file.ntvfs; + /* SMB2 Close has output parameter, but we just zero them */ + ZERO_STRUCT(cl->smb2.out); break; } |