diff options
author | Ralph Boehme <slow@samba.org> | 2019-02-05 14:08:56 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-02-06 10:19:12 +0100 |
commit | bf91ee0a9727cc392583fe84ad069204be758515 (patch) | |
tree | cdee97d19e2b19d25d33d19ee1810a7ab8d02f32 /source3/lib | |
parent | 9465292d4109f710f8fcd141a076f5c8278577bc (diff) | |
download | samba-bf91ee0a9727cc392583fe84ad069204be758515.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
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/tldap_util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c index 508c6c02f80..54a9eb30bbe 100644 --- a/source3/lib/tldap_util.c +++ b/source3/lib/tldap_util.c @@ -457,7 +457,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; } @@ -739,7 +738,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; } |