CVE-2020-10730: s4 dsdb paged_results: Prevent repeat call of ldb_module_done
commit4d99cab6172a515026275a1ed19ded4def8710d7
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 18 May 2020 00:36:57 +0000 (18 12:36 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 2 Jul 2020 09:01:40 +0000 (2 09:01 +0000)
tree1903b2a8ba1148c6edbb81d9329786bee664a737
parent9197d85c52dc07b7e66eebb7da21e0fcd40a21c9
CVE-2020-10730: s4 dsdb paged_results: Prevent repeat call of ldb_module_done

Check the return code from paged_results, if it is not LDB_SUCCESS
ldb_module_done has already been called, and SHOULD NOT be called again.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14364

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/paged_results.c