From: Jeremy Allison Date: Tue, 29 Sep 2020 19:14:11 +0000 (-0700) Subject: s3: smbd: SMB1 reply_fclose() doesn't need wcard, use srvstr_get_path_req() not srvst... X-Git-Tag: talloc-2.3.2~404 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49be6d38671c00e1d818d92dfda36f74cfd1a2e4;p=thirdparty%2Fsamba.git s3: smbd: SMB1 reply_fclose() doesn't need wcard, use srvstr_get_path_req() not srvstr_get_path_req_wcard(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 5f2b8dfd1c9..f46f0c5a644 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2174,7 +2174,6 @@ void reply_fclose(struct smb_request *req) const char *p; char *path = NULL; NTSTATUS err; - bool path_contains_wcard = False; TALLOC_CTX *ctx = talloc_tos(); struct smbd_server_connection *sconn = req->sconn; files_struct *fsp = NULL; @@ -2188,8 +2187,8 @@ void reply_fclose(struct smb_request *req) } p = (const char *)req->buf + 1; - p += srvstr_get_path_req_wcard(ctx, req, &path, p, STR_TERMINATE, - &err, &path_contains_wcard); + p += srvstr_get_path_req(ctx, req, &path, p, STR_TERMINATE, + &err); if (!NT_STATUS_IS_OK(err)) { reply_nterror(req, err); END_PROFILE(SMBfclose);