s3: smbd: rename - missing early error exit if source and destination prefixes are...
[sfrench/samba-autobuild/.git] / source3 / smbd / reply.c
index 6b16458e19cad3df3b964bd4c5c88d07fbf5110d..9504d1b3039e0df4f94282688fea8861b61395bd 100644 (file)
@@ -6769,6 +6769,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);