summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-12-05 14:13:14 -0800
committerRalph Boehme <slow@samba.org>2016-12-07 07:58:26 +0100
commit2bfad1c9d3237ad8d174b7dc2d1e6e3c53fdb8dc (patch)
treec244d6a5e815563da5f0f7e365268bd4332f249e /source3/smbd/reply.c
parent3aecad2ffd1a3ad906ef40d77cca3530042d6a10 (diff)
downloadsamba-2bfad1c9d3237ad8d174b7dc2d1e6e3c53fdb8dc.tar.gz
s3: smbd: rename - missing early error exit if source and destination prefixes are different.
Noticed by Michael Zeis <mzeis.quantum@gmail.com>. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12460 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 0aec4338c32..6ddfa4f4de7 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -6812,6 +6812,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
if (rename_path_prefix_equal(fsp->fsp_name, smb_fname_dst)) {
status = NT_STATUS_ACCESS_DENIED;
+ goto out;
}
lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id);