mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
smbd: move tevent_req_post() out of smbd_smb2_create_after_exec()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
20df26b908
commit
9338d1b17c
@ -954,7 +954,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
smbd_smb2_create_after_exec(req);
|
||||
if (!tevent_req_is_in_progress(req)) {
|
||||
return req;
|
||||
return tevent_req_post(req, state->ev);
|
||||
}
|
||||
|
||||
smbd_smb2_create_finish(req);
|
||||
@ -1033,7 +1033,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
smbd_smb2_create_after_exec(req);
|
||||
if (!tevent_req_is_in_progress(req)) {
|
||||
return req;
|
||||
return tevent_req_post(req, state->ev);
|
||||
}
|
||||
|
||||
smbd_smb2_create_finish(req);
|
||||
@ -1144,7 +1144,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
smbd_smb2_create_after_exec(req);
|
||||
if (!tevent_req_is_in_progress(req)) {
|
||||
return req;
|
||||
return tevent_req_post(req, state->ev);
|
||||
}
|
||||
|
||||
smbd_smb2_create_finish(req);
|
||||
@ -1706,7 +1706,6 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req)
|
||||
fail:
|
||||
close_file_free(state->smb1req, &state->result, ERROR_CLOSE);
|
||||
tevent_req_nterror(req, status);
|
||||
tevent_req_post(req, state->ev);
|
||||
}
|
||||
|
||||
static void smbd_smb2_create_finish(struct tevent_req *req)
|
||||
|
Loading…
x
Reference in New Issue
Block a user