From 2d35fd7259bb8ad9a4a6a0c0b8d7a4f1cdf78c12 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 13 Mar 2012 19:26:02 -0700 Subject: Fix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Mar 14 05:08:03 CET 2012 on sn-devel-104 --- libcli/security/secdesc.c | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- cgit