From: Jeremy Allison Date: Tue, 29 Sep 2020 19:07:39 +0000 (-0700) Subject: s3: smbd: SMB1 reply_search(). Use srvstr_get_path_req() not srvstr_get_path_req_wcard() X-Git-Tag: talloc-2.3.2~405 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edee7198d9745899408bdb9de3153fc5484892f0;p=thirdparty%2Fsamba.git s3: smbd: SMB1 reply_search(). Use srvstr_get_path_req() not srvstr_get_path_req_wcard() If we have a wildcard is found by other means now. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index e848d6c553c..5f2b8dfd1c9 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1839,8 +1839,8 @@ void reply_search(struct smb_request *req) maxentries = SVAL(req->vwv+0, 0); dirtype = SVAL(req->vwv+1, 0); p = (const char *)req->buf + 1; - p += srvstr_get_path_req_wcard(ctx, req, &path, p, STR_TERMINATE, - &nt_status, &mask_contains_wcard); + p += srvstr_get_path_req(ctx, req, &path, p, STR_TERMINATE, + &nt_status); if (!NT_STATUS_IS_OK(nt_status)) { reply_nterror(req, nt_status); goto out;