summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:23:44 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:02 -0700
commit421eeef732a63711b3e922bd63f9ac59110659f1 (patch)
treed694d57c0b68f5b3da1c5a8c6204e3705a819153
parent66beff7dd0483a5bb7591d7e5e85e5de96b5dbe7 (diff)
downloadsamba-421eeef732a63711b3e922bd63f9ac59110659f1.tar.gz
samba-421eeef732a63711b3e922bd63f9ac59110659f1.tar.bz2
samba-421eeef732a63711b3e922bd63f9ac59110659f1.zip
smbd: Convert open_streams_for_delete to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/open.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index ab83a043fd..fedd2b9b24 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3371,17 +3371,17 @@ NTSTATUS open_streams_for_delete(connection_struct *conn,
}
for (i=0; i<num_streams; i++) {
- struct smb_filename *smb_fname = NULL;
+ struct smb_filename *smb_fname;
if (strequal(stream_info[i].name, "::$DATA")) {
streams[i] = NULL;
continue;
}
- status = create_synthetic_smb_fname(talloc_tos(), fname,
- stream_info[i].name,
- NULL, &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname(
+ talloc_tos(), fname, stream_info[i].name, NULL);
+ if (smb_fname == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto fail;
}