diff options
-rw-r--r-- | libcli/security/secdesc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c index fcd0828963..84128e4acd 100644 --- a/libcli/security/secdesc.c +++ b/libcli/security/secdesc.c @@ -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]; |