s4:vfs_ipc - fix "ipc_open" for NTTRANS create requests
[ira/wip.git] / source4 / ntvfs / ipc / vfs_ipc.c
index 3a27b8d7b0cfab082b7f3c407957a1f76ae7bd4d..aefa93a8eff5617632cfb0aba0b4017b0fa072fb 100644 (file)
@@ -260,6 +260,7 @@ static NTSTATUS ipc_open(struct ntvfs_module_context *ntvfs,
 
        switch (oi->generic.level) {
        case RAW_OPEN_NTCREATEX:
+       case RAW_OPEN_NTTRANS_CREATE:
                fname = oi->ntcreatex.in.fname;
                break;
        case RAW_OPEN_OPENX:
@@ -269,8 +270,7 @@ static NTSTATUS ipc_open(struct ntvfs_module_context *ntvfs,
                fname = oi->smb2.in.fname;
                break;
        default:
-               status = NT_STATUS_NOT_SUPPORTED;
-               break;
+               return NT_STATUS_NOT_SUPPORTED;
        }
 
        directory = talloc_asprintf(req, "%s/np",