summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/filename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index d5c22e81c3..6ab179a316 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -603,8 +603,8 @@ NTSTATUS unix_convert(connection_struct *conn,
done:
result = NT_STATUS_OK;
- pstrcpy(orig_path, name);
fail:
+ pstrcpy(orig_path, name);
SAFE_FREE(name);
SAFE_FREE(dirpath);
return result;