diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:03:44 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:01 -0700 |
commit | e3a7f707686973af04afd1022820a4aabdae95ac (patch) | |
tree | d1d1a3f450f117983e765f13938fa80805211b33 /source3/smbd | |
parent | 2d76ce3fc0d5fdf7a77512e1d110ca15a1711ba0 (diff) | |
download | samba-e3a7f707686973af04afd1022820a4aabdae95ac.tar.gz samba-e3a7f707686973af04afd1022820a4aabdae95ac.tar.bz2 samba-e3a7f707686973af04afd1022820a4aabdae95ac.zip |
smbd: Convert file_new to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/files.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index a1680fe70e..d94ee11952 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -115,11 +115,10 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn, * few NULL checks, so make sure it's initialized with something. to * be safe until an audit can be done. */ - status = create_synthetic_smb_fname(fsp, "", NULL, NULL, - &fsp->fsp_name); - if (!NT_STATUS_IS_OK(status)) { + fsp->fsp_name = synthetic_smb_fname(fsp, "", NULL, NULL); + if (fsp->fsp_name == NULL) { file_free(NULL, fsp); - return status; + return NT_STATUS_NO_MEMORY; } DEBUG(5,("allocated file structure %s (%u used)\n", |