s3: smbd: SMB1 reply_fclose() doesn't need wcard, use srvstr_get_path_req() not srvst...
authorJeremy Allison <jra@samba.org>
Tue, 29 Sep 2020 19:14:11 +0000 (12:14 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 30 Sep 2020 20:46:40 +0000 (20:46 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index 5f2b8dfd1c9c36eae1cb2c0dcd7b075b8bdbf3a7..f46f0c5a644e37b34e949f75b198b4cfbdcd7e75 100644 (file)
@@ -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);