1
0
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:
Jeremy Allison 2012-03-13 19:26:02 -07:00
parent 44590c1b70
commit 2d35fd7259

View File

@ -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];