summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/torture/cmd_vfs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 8e392741eb..1b202084a9 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -1462,11 +1462,10 @@ static NTSTATUS cmd_set_nt_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int a
}
fsp->conn = vfs->conn;
- status = create_synthetic_smb_fname_split(NULL, argv[1], NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname_split(NULL, argv[1], NULL);
+ if (smb_fname == NULL) {
TALLOC_FREE(fsp);
- return status;
+ return NT_STATUS_NO_MEMORY;
}
fsp->fsp_name = smb_fname;