From: Garming Sam Date: Wed, 31 Jul 2019 01:39:13 +0000 (+1200) Subject: tldap: Paged searches fail when they get to the end X-Git-Tag: tdb-1.4.2~386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bff466943e01540b4d3210392e0fd5b1c882c0b9;p=thirdparty%2Fsamba.git tldap: Paged searches fail when they get to the end The normal case hit the goto label, and should have just returned. Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett BUG: https://bugzilla.samba.org/show_bug.cgi?id=14029 --- diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c index bdf8eb031a5..1b86962a32e 100644 --- a/source3/lib/tldap_util.c +++ b/source3/lib/tldap_util.c @@ -810,7 +810,8 @@ static void tldap_search_paged_done(struct tevent_req *subreq) } tevent_req_set_callback(subreq, tldap_search_paged_done, req); - err: + return; +err: TALLOC_FREE(asn1); tevent_req_ldap_error(req, TLDAP_DECODING_ERROR);