diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-06-08 14:14:24 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-06-10 19:27:05 +0200 |
commit | 173fc258e443d97e4ea37f2bee99c21ad15ab484 (patch) | |
tree | f74ec811b84d22e871f00c36b42f72c5779c301b | |
parent | 49cdf171a5198495aead9ace43963e805331e20b (diff) | |
download | samba-173fc258e443d97e4ea37f2bee99c21ad15ab484.tar.gz samba-173fc258e443d97e4ea37f2bee99c21ad15ab484.tar.xz samba-173fc258e443d97e4ea37f2bee99c21ad15ab484.zip |
s3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor directly
metze
-rw-r--r-- | source3/libsmb/async_smb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 45e83b87c21..2e0ddb9fdb0 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -627,7 +627,7 @@ 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_destructor(req); + cli_smb_req_unset_pending(req); state->chain_num = 0; state->chain_length = 1; tevent_req_done(req); @@ -671,7 +671,7 @@ static void cli_smb_received(struct tevent_req *subreq) while (talloc_array_length(cli->pending) > 0) { req = cli->pending[0]; talloc_set_destructor(req, NULL); - cli_smb_req_destructor(req); + cli_smb_req_unset_pending(req); tevent_req_nterror(req, status); } } |