CVE-2018-10919 acl_read: Small refactor to aclread_callback()
commit4234579a5d9d3e27e90cd019f85a78a214b96314
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 26 Jul 2018 00:20:49 +0000 (26 12:20 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Aug 2018 11:57:16 +0000 (14 13:57 +0200)
treea9feead5f75d56a4771bfa9accbffd17fe5f03a8
parent80c4e17f0f28fd13c92938216bca0543c361bd9e
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