summaryrefslogtreecommitdiffstats
path: root/source/smbd/filename.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/filename.c')
-rw-r--r--source/smbd/filename.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/filename.c b/source/smbd/filename.c
index 73e3869f50b..25ade529476 100644
--- a/source/smbd/filename.c
+++ b/source/smbd/filename.c
@@ -155,8 +155,7 @@ NTSTATUS unix_convert(connection_struct *conn,
if (!*orig_path) {
if (!(name = SMB_STRDUP("."))) {
- result = NT_STATUS_NO_MEMORY;
- goto fail;
+ return NT_STATUS_NO_MEMORY;
}
if (SMB_VFS_STAT(conn,name,&st) == 0) {
*pst = st;