summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-01-04 16:03:42 +0100
committerMatthieu Patou <mat@matws.net>2013-01-17 00:22:32 -0800
commit629ce2a1ba392f2e8b632752c583843777471378 (patch)
treee35a46fdb3a83ca33267f3a8720c010f3002acfa /libcli
parent70460605c6132ffbc6be825c24f188674c0ac979 (diff)
downloadsamba-629ce2a1ba392f2e8b632752c583843777471378.tar.gz
samba-629ce2a1ba392f2e8b632752c583843777471378.tar.bz2
samba-629ce2a1ba392f2e8b632752c583843777471378.zip
libcli/security: don't look at the inherited type in get_ace_object_type()
The inherited_type is only used to decide if aces should be inherited effectively or not (INHERIT_ONLY) for the specified object. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Matthieu Patou <mat@matws.net>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/access_check.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcli/security/access_check.c b/libcli/security/access_check.c
index 9153dad499..70345f5a56 100644
--- a/libcli/security/access_check.c
+++ b/libcli/security/access_check.c
@@ -371,8 +371,6 @@ static const struct GUID *get_ace_object_type(struct security_ace *ace)
if (ace->object.object.flags & SEC_ACE_OBJECT_TYPE_PRESENT)
type = &ace->object.object.type.type;
- else if (ace->object.object.flags & SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT)
- type = &ace->object.object.inherited_type.inherited_type; /* This doesn't look right. Is something wrong with the IDL? */
else
type = NULL;