From 629ce2a1ba392f2e8b632752c583843777471378 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 4 Jan 2013 16:03:42 +0100 Subject: 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 Reviewed-by: Matthieu Patou --- libcli/security/access_check.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libcli') 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; -- cgit