summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-01-16 10:05:56 +0100
committerStefan Metzmacher <metze@samba.org>2013-01-21 16:12:45 +0100
commita3fffde368fa0c6594f7fd5309e0b20d3fa7c68e (patch)
tree06e8f1ba29e307268513f70a520ae238941364aa /libcli/security
parentb0f731fc3b96edf91216829bd0dc63bb4269f458 (diff)
downloadsamba-a3fffde368fa0c6594f7fd5309e0b20d3fa7c68e.tar.gz
samba-a3fffde368fa0c6594f7fd5309e0b20d3fa7c68e.tar.bz2
samba-a3fffde368fa0c6594f7fd5309e0b20d3fa7c68e.zip
libcli/security: simplify get_ace_object_type()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/access_check.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libcli/security/access_check.c b/libcli/security/access_check.c
index 3be322ef21..83b7f9bd6c 100644
--- a/libcli/security/access_check.c
+++ b/libcli/security/access_check.c
@@ -367,15 +367,11 @@ NTSTATUS se_file_access_check(const struct security_descriptor *sd,
static const struct GUID *get_ace_object_type(struct security_ace *ace)
{
- struct GUID *type;
-
- if (ace->object.object.flags & SEC_ACE_OBJECT_TYPE_PRESENT)
- type = &ace->object.object.type.type;
- else
- type = NULL;
-
- return type;
+ if (ace->object.object.flags & SEC_ACE_OBJECT_TYPE_PRESENT) {
+ return &ace->object.object.type.type;
+ }
+ return NULL;
}
/* modified access check for the purposes of DS security