mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +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:
@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user