summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-09 10:40:30 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-09 12:40:27 +0200
commit242ca5dba35ba282ddfe96751120810eadb4de8e (patch)
treea3f8fba0b6660ad58191e9ce5237cc417bd7872b /source3/libsmb
parentc55bfc0733dd4be99c17ff8ee60c8e669c12bc3f (diff)
downloadsamba-242ca5dba35ba282ddfe96751120810eadb4de8e.tar.gz
samba-242ca5dba35ba282ddfe96751120810eadb4de8e.tar.bz2
samba-242ca5dba35ba282ddfe96751120810eadb4de8e.zip
s3:smb2cli_base: unset the destructor in smb2cli_req_unset_pending()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smb2cli_base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c
index b12e939a39..7678cb9dc6 100644
--- a/source3/libsmb/smb2cli_base.c
+++ b/source3/libsmb/smb2cli_base.c
@@ -50,6 +50,8 @@ static void smb2cli_req_unset_pending(struct tevent_req *req)
int num_pending = talloc_array_length(cli->pending);
int i;
+ talloc_set_destructor(req, NULL);
+
if (num_pending == 1) {
/*
* The pending read_smb tevent_req is a child of
@@ -492,8 +494,7 @@ static void smb2cli_inbuf_received(struct tevent_req *subreq)
*/
while (talloc_array_length(cli->pending) > 0) {
req = cli->pending[0];
- talloc_set_destructor(req, NULL);
- smb2cli_req_destructor(req);
+ smb2cli_req_unset_pending(req);
tevent_req_nterror(req, status);
}
}