summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-02-05 14:08:56 +0100
committerKarolin Seeger <kseeger@samba.org>2019-02-21 12:31:46 +0100
commite60d5ca3a7b4b962e012c4ee8f0ff9062c534af4 (patch)
treeeb71341c22f7dbdf262ac268a432733d451244c2 /source3
parent24c71628c3415089b34fe998ff923db7cc6165c6 (diff)
downloadsamba-e60d5ca3a7b4b962e012c4ee8f0ff9062c534af4.tar.gz
tldap: avoid more use after free errors
See the previous commit for an explanation. :) Bug: https://bugzilla.samba.org/show_bug.cgi?id=13776 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Feb 6 10:19:12 CET 2019 on sn-devel-144 (cherry picked from commit bf91ee0a9727cc392583fe84ad069204be758515)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/tldap_util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c
index 89f812b97e0..accdbe41d96 100644
--- a/source3/lib/tldap_util.c
+++ b/source3/lib/tldap_util.c
@@ -459,7 +459,6 @@ static void tldap_fetch_rootdse_done(struct tevent_req *subreq)
rc = tldap_search_recv(subreq, state, &msg);
if (tevent_req_ldap_error(req, rc)) {
- TALLOC_FREE(subreq);
return;
}
@@ -741,7 +740,6 @@ static void tldap_search_paged_done(struct tevent_req *subreq)
rc = tldap_search_recv(subreq, state, &state->result);
if (tevent_req_ldap_error(req, rc)) {
- TALLOC_FREE(subreq);
return;
}