From 96765e535d70f683599c57c0334075a70b9200b3 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 30 Mar 2023 16:07:05 +0200 Subject: smbd: use smb1_strip_dfs_path() in call_trans2open() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/smb1_trans2.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index 87c5ec697b5..c46b7a224bf 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -592,6 +592,11 @@ static void call_trans2open(connection_struct *conn, if (ucf_flags & UCF_GMT_PATHNAME) { extract_snapshot_token(fname, &twrp); } + status = smb1_strip_dfs_path(ctx, &ucf_flags, &fname); + if (!NT_STATUS_IS_OK(status)) { + reply_nterror(req, status); + goto out; + } status = filename_convert_dirfsp(ctx, conn, fname, -- cgit v1.2.1