From e60d5ca3a7b4b962e012c4ee8f0ff9062c534af4 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 5 Feb 2019 14:08:56 +0100 Subject: tldap: avoid more use after free errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See the previous commit for an explanation. :) Bug: https://bugzilla.samba.org/show_bug.cgi?id=13776 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Wed Feb 6 10:19:12 CET 2019 on sn-devel-144 (cherry picked from commit bf91ee0a9727cc392583fe84ad069204be758515) --- source3/lib/tldap_util.c | 2 -- 1 file changed, 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; } -- cgit v1.2.1