From 49be6d38671c00e1d818d92dfda36f74cfd1a2e4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Sep 2020 12:14:11 -0700 Subject: [PATCH] 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 --- source3/smbd/reply.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.47.3