CVE-2020-10730: s4 dsdb paged_results: Prevent repeat call of ldb_module_done
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 18 May 2020 00:36:57 +0000 (12:36 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jun 2020 08:43:52 +0000 (10:43 +0200)
commitc29319e91d0764c7078ea59af78a16dbaf0b6824
tree10d462f02a12de5bab388f2639766b001caee93b
parentb1f72d2ce5e7cf3dc6877040a0fd086bd5d7c2c9
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