mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
Fix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 14 05:08:03 CET 2012 on sn-devel-104
This commit is contained in:
parent
44590c1b70
commit
2d35fd7259
@ -542,6 +542,10 @@ bool sd_has_inheritable_components(const struct security_descriptor *parent_ctr,
|
||||
unsigned int i;
|
||||
const struct security_acl *the_acl = parent_ctr->dacl;
|
||||
|
||||
if (the_acl == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (i = 0; i < the_acl->num_aces; i++) {
|
||||
const struct security_ace *ace = &the_acl->aces[i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user