CVE-2018-10919 acl_read: Small refactor to aclread_callback()
commit4c201d0a09a082f47ddfdcb021ac4d82a9a3dc77
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 26 Jul 2018 00:20:49 +0000 (26 12:20 +1200)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 Aug 2018 15:42:13 +0000 (14 17:42 +0200)
tree6f1f35c56cd9162bd9b5b0645be3b1382b051e36
parent03950558a4566c4044e374d37f2b8f5a80005bf6
CVE-2018-10919 acl_read: Small refactor to aclread_callback()

Flip the dirsync check (to avoid a double negative), and use a helper
boolean variable.

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

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