tldap: Only free() ld->pending if "req" is part of it
authorVolker Lendecke <vl@samba.org>
Tue, 11 Aug 2020 14:16:12 +0000 (16:16 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 31 Aug 2020 08:12:22 +0000 (08:12 +0000)
commit90e0feb0a35ddcb0b92a0055d7d5815e66b17505
treefdd60009eddded1da94cc15b7cc549feb8f1a958
parent74fef4bc2ce656ac7516951b9e32ebefb783d5a0
tldap: Only free() ld->pending if "req" is part of it

Best reviewed with "git show -U10". We need to check that "req" is
actually the last request that is being freed before freeing the whole
array.

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 b85dbc9ccf80d8c19aff33c1da83954e5d6a37ef)
source3/lib/tldap.c