summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:10:28 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:01 -0700
commit81e9c0102d1aae9b794addd7e35f9a888d5d66a2 (patch)
tree3b2ec907008f12da26f76cb5c785ffa981dbec71 /source3/smbd/service.c
parent10d8d7d0bdea0e472c76241936cbfa70f1a60af8 (diff)
downloadsamba-81e9c0102d1aae9b794addd7e35f9a888d5d66a2.tar.gz
samba-81e9c0102d1aae9b794addd7e35f9a888d5d66a2.tar.bz2
samba-81e9c0102d1aae9b794addd7e35f9a888d5d66a2.zip
smbd: Convert make_connection_snum to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 4fe3809ea7..4c0832a8a0 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -798,9 +798,10 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
set_namearray( &conn->aio_write_behind_list,
lp_aio_write_behind(talloc_tos(), snum));
}
- status = create_synthetic_smb_fname(talloc_tos(), conn->connectpath,
- NULL, NULL, &smb_fname_cpath);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_cpath = synthetic_smb_fname(talloc_tos(), conn->connectpath,
+ NULL, NULL);
+ if (smb_fname_cpath == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto err_root_exit;
}