From: Ralph Boehme Date: Thu, 30 Mar 2023 14:43:58 +0000 (+0200) Subject: smbd: use smb1_strip_dfs_path() in reply_search() X-Git-Tag: talloc-2.4.1~1198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f539e632bb65b1583ce93804e9012ed3089c03ba;p=thirdparty%2Fsamba.git smbd: use smb1_strip_dfs_path() in reply_search() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index 7efc4fe6d1a..3fc2cc8e793 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -1210,6 +1210,12 @@ void reply_search(struct smb_request *req) struct smb_filename *smb_dname = NULL; uint32_t ucf_flags = ucf_flags_from_smb_request(req); + nt_status = smb1_strip_dfs_path(ctx, &ucf_flags, &path); + if (!NT_STATUS_IS_OK(nt_status)) { + reply_nterror(req, nt_status); + goto out; + } + nt_status = filename_convert_smb1_search_path(ctx, conn, path,