mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:libsmb: reset the destructor in cli_smb_req_unset_pending()
metze
This commit is contained in:
parent
c01b8326e0
commit
d41d2e93f4
@ -132,6 +132,8 @@ void cli_smb_req_unset_pending(struct tevent_req *req)
|
||||
return;
|
||||
}
|
||||
|
||||
talloc_set_destructor(req, NULL);
|
||||
|
||||
if (num_pending == 1) {
|
||||
/*
|
||||
* The pending read_smb tevent_req is a child of
|
||||
@ -661,7 +663,6 @@ static void cli_smb_received(struct tevent_req *subreq)
|
||||
|
||||
if (state->chained_requests == NULL) {
|
||||
state->inbuf = talloc_move(state, &inbuf);
|
||||
talloc_set_destructor(req, NULL);
|
||||
cli_smb_req_unset_pending(req);
|
||||
state->chain_num = 0;
|
||||
state->chain_length = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user