summaryrefslogtreecommitdiffstats
path: root/source3/lib/tldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/tldap.c')
-rw-r--r--source3/lib/tldap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index b094c2d3c2..a566a91adb 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -650,6 +650,8 @@ static void tldap_msg_received(struct tevent_req *subreq)
fail:
while (talloc_array_length(ld->pending) > 0) {
req = ld->pending[0];
+ state = tevent_req_data(req, struct tldap_msg_state);
+ tevent_req_defer_callback(req, state->ev);
talloc_set_destructor(req, NULL);
tldap_msg_destructor(req);
tevent_req_error(req, status);