diff options
author | Garming Sam <garming@catalyst.net.nz> | 2019-07-31 13:39:13 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-07 10:57:33 +0000 |
commit | 23f8a8ee71b6aa2b88174e5d9556508ae48e733e (patch) | |
tree | 0f98816294e5309ed10e35d49359519f4bf9ab9e /source3 | |
parent | dd36cafdb96e37eb8ee6b55feb3233dc07558b41 (diff) | |
download | samba-23f8a8ee71b6aa2b88174e5d9556508ae48e733e.tar.gz |
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 <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14029
(cherry picked from commit bff466943e01540b4d3210392e0fd5b1c882c0b9)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/tldap_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |