CVE-2018-10919 acl_read: Flip the logic in the dirsync check
commit98c2e6a14fa28d0fe64641227065cd44beb55f96
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 30 Jul 2018 04:00:15 +0000 (30 16:00 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Aug 2018 11:57:16 +0000 (14 13:57 +0200)
tree5e9cffd23f56879c2e1548608bc3dd22fd886e56
parent4234579a5d9d3e27e90cd019f85a78a214b96314
CVE-2018-10919 acl_read: Flip the logic in the dirsync check

This better reflects the special case we're making for dirsync, and gets
rid of a 'if-else' clause.

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