tldap: Fix tldap_msg_received()
authorVolker Lendecke <vl@samba.org>
Tue, 11 Aug 2020 14:54:34 +0000 (16:54 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 21 Aug 2020 19:14:33 +0000 (19:14 +0000)
commitf816ccb8f4d212fe7f6bf36f90cbb9297c899786
tree68bd3b546bf8782b4ee32348be2fe9d49a429f60
parentb85dbc9ccf80d8c19aff33c1da83954e5d6a37ef
tldap: Fix tldap_msg_received()

The callback of "req" might have destroyed "ld", we can't reference
this anymore after calling tevent_req_done(req). Defer calling the
callbacks, which also means that the callbacks can't have added
anything to ld->pending.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14465

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/tldap.c