summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-11 12:18:26 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-12 11:08:00 +0200
commitd41d2e93f4e13e7975bcd8d4b7dc125f81ef2559 (patch)
treecbff81897abc68c709771895ab62ce78f56cbf5d /source3/libsmb
parentc01b8326e05c4113e3e979e02061fbc47476dadd (diff)
downloadsamba-d41d2e93f4e13e7975bcd8d4b7dc125f81ef2559.tar.gz
samba-d41d2e93f4e13e7975bcd8d4b7dc125f81ef2559.tar.bz2
samba-d41d2e93f4e13e7975bcd8d4b7dc125f81ef2559.zip
s3:libsmb: reset the destructor in cli_smb_req_unset_pending()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 9dc4955531..9a5807fd41 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -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;