tldap: Make sure all requests are cancelled on rundown
authorVolker Lendecke <vl@samba.org>
Tue, 11 Aug 2020 15:44:42 +0000 (17:44 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 31 Aug 2020 08:12:23 +0000 (08:12 +0000)
commitbf7dfed4f9075efb4ff5d9347c496631865b5e8b
tree45d98dde8022a59e194069faf456475fe057e8ba
parentec8e422f6eae2c7a68d04d52dd09145ab0acfdc5
tldap: Make sure all requests are cancelled on rundown

Put messages into the ld->pending array before sending them out, not
after they have been sent.

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>
(cherry picked from commit 2a2a6b27cccb2409d321c7e03feb8baa047d1bf4)
source3/lib/tldap.c