diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/vfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 761470c454..edc10a4f97 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1016,10 +1016,9 @@ NTSTATUS check_reduced_name_with_privilege(connection_struct *conn, resolved_name)); /* Now check the stat value is the same. */ - status = create_synthetic_smb_fname(talloc_tos(), ".", - NULL, NULL, - &smb_fname_cwd); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_cwd = synthetic_smb_fname(talloc_tos(), ".", NULL, NULL); + if (smb_fname_cwd == NULL) { + status = NT_STATUS_NO_MEMORY; goto err; } |