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>
Tue, 30 Jun 2020 10:52:13 +0000 (12:52 +0200)
commitdcf713038ff10e35a74ee255f1634be81103e360
tree40ab0d09774ca31bb11c82ca688f1a282f53f6a7
parent0c8cd0a9fbd9d17c1d7219f977ca35f88f0a2ea3
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