diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/pipes.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index 9cca3f03c1..05d98d4782 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -51,11 +51,10 @@ NTSTATUS open_np_file(struct smb_request *smb_req, const char *name, fsp->can_lock = false; fsp->access_mask = FILE_READ_DATA | FILE_WRITE_DATA; - status = create_synthetic_smb_fname(talloc_tos(), name, NULL, NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { + smb_fname = synthetic_smb_fname(talloc_tos(), name, NULL, NULL); + if (smb_fname == NULL) { file_free(smb_req, fsp); - return status; + return NT_STATUS_NO_MEMORY; } status = fsp_set_smb_fname(fsp, smb_fname); TALLOC_FREE(smb_fname); |