From: Jeremy Allison Date: Wed, 14 Mar 2012 02:26:02 +0000 (-0700) Subject: Fix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check... X-Git-Tag: tdb-1.2.10~210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d35fd7259bb8ad9a4a6a0c0b8d7a4f1cdf78c12;p=thirdparty%2Fsamba.git 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 --- diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c index fcd0828963a..84128e4acde 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];