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)
committerVolker Lendecke <vl@samba.org>
Fri, 21 Aug 2020 19:14:33 +0000 (19:14 +0000)
commit2a2a6b27cccb2409d321c7e03feb8baa047d1bf4
treeb160955bb7d7623f98c7db7c3b86e8fec96db423
parentf745f5b12560dbcb7be6f3ffb3bc10704c87149c
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>
source3/lib/tldap.c