mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor directly
metze
This commit is contained in:
committed by
Jeremy Allison
parent
49cdf171a5
commit
173fc258e4
@ -627,7 +627,7 @@ static void cli_smb_received(struct tevent_req *subreq)
|
|||||||
if (state->chained_requests == NULL) {
|
if (state->chained_requests == NULL) {
|
||||||
state->inbuf = talloc_move(state, &inbuf);
|
state->inbuf = talloc_move(state, &inbuf);
|
||||||
talloc_set_destructor(req, NULL);
|
talloc_set_destructor(req, NULL);
|
||||||
cli_smb_req_destructor(req);
|
cli_smb_req_unset_pending(req);
|
||||||
state->chain_num = 0;
|
state->chain_num = 0;
|
||||||
state->chain_length = 1;
|
state->chain_length = 1;
|
||||||
tevent_req_done(req);
|
tevent_req_done(req);
|
||||||
@ -671,7 +671,7 @@ static void cli_smb_received(struct tevent_req *subreq)
|
|||||||
while (talloc_array_length(cli->pending) > 0) {
|
while (talloc_array_length(cli->pending) > 0) {
|
||||||
req = cli->pending[0];
|
req = cli->pending[0];
|
||||||
talloc_set_destructor(req, NULL);
|
talloc_set_destructor(req, NULL);
|
||||||
cli_smb_req_destructor(req);
|
cli_smb_req_unset_pending(req);
|
||||||
tevent_req_nterror(req, status);
|
tevent_req_nterror(req, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user