goto out;
}
+ /* Get the last component of the destination for rename_internals(). */
+ dst_original_lcomp = get_original_lcomp(ctx,
+ conn,
+ newname,
+ ucf_flags_dst);
+ if (dst_original_lcomp == NULL) {
+ reply_nterror(req, NT_STATUS_NO_MEMORY);
+ goto out;
+ }
+
status = filename_convert(ctx, conn,
newname,
ucf_flags_dst,
goto out;
}
- /* Get the last component of the destination for rename_internals(). */
- dst_original_lcomp = get_original_lcomp(ctx,
- conn,
- newname,
- ucf_flags_dst);
- if (dst_original_lcomp == NULL) {
- reply_nterror(req, NT_STATUS_NO_MEMORY);
- goto out;
- }
-
if (stream_rename) {
/* smb_fname_new must be the same as smb_fname_old. */
TALLOC_FREE(smb_fname_new->base_name);