summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;