CVE-2018-10919 acl_read: Small refactor to aclread_callback()
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 26 Jul 2018 00:20:49 +0000 (12:20 +1200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 07:13:36 +0000 (09:13 +0200)
commit533106ae9c210a3d7c501f239e7de9d0966f27b9
tree19684b111d91bfe2ef733e78f722b9b9110b1f49
parentfa7bcea388b310f461f1f2c1788687523c6f1a18
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