From 43811868d1d55ee6d23de3956d73c25b163b671c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 1 Sep 2022 14:46:39 +0200 Subject: [PATCH] smbd: Introduce "conn" helper var in smbd_smb2_create_after_exec() Will be used more in the future Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/smbd/smb2_create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 75b9c7d28ff..b2beb6e373e 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -1387,6 +1387,7 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req) { struct smbd_smb2_create_state *state = tevent_req_data( req, struct smbd_smb2_create_state); + connection_struct *conn = state->result->conn; NTSTATUS status; /* @@ -1409,7 +1410,7 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req) DATA_BLOB blob = data_blob_const(p, sizeof(p)); status = smbd_calculate_access_mask_fsp( - state->result->conn->cwd_fsp, + conn->cwd_fsp, state->result, false, SEC_FLAG_MAXIMUM_ALLOWED, @@ -1523,8 +1524,7 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req) SMB_STRUCT_STAT *base_sp = state->result->base_fsp ? &state->result->base_fsp->fsp_name->st : &state->result->fsp_name->st; - uint64_t file_id = SMB_VFS_FS_FILE_ID( - state->result->conn, base_sp); + uint64_t file_id = SMB_VFS_FS_FILE_ID(conn, base_sp); DATA_BLOB blob = data_blob_const(p, sizeof(p)); ZERO_STRUCT(p); -- 2.47.3