summaryrefslogtreecommitdiff
path: root/source4/libcli/security/access_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/security/access_check.c')
-rw-r--r--source4/libcli/security/access_check.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/source4/libcli/security/access_check.c b/source4/libcli/security/access_check.c
index c10751abce..0ffca1ade8 100644
--- a/source4/libcli/security/access_check.c
+++ b/source4/libcli/security/access_check.c
@@ -67,13 +67,15 @@ static uint32_t access_check_max_allowed(const struct security_descriptor *sd,
}
switch (ace->type) {
- case SEC_ACE_TYPE_ACCESS_ALLOWED:
- granted |= ace->access_mask;
- break;
- case SEC_ACE_TYPE_ACCESS_DENIED:
- case SEC_ACE_TYPE_ACCESS_DENIED_OBJECT:
- denied |= ace->access_mask;
- break;
+ case SEC_ACE_TYPE_ACCESS_ALLOWED:
+ granted |= ace->access_mask;
+ break;
+ case SEC_ACE_TYPE_ACCESS_DENIED:
+ case SEC_ACE_TYPE_ACCESS_DENIED_OBJECT:
+ denied |= ace->access_mask;
+ break;
+ default: /* Other ACE types not handled/supported */
+ break;
}
}
@@ -153,6 +155,8 @@ NTSTATUS sec_access_check(const struct security_descriptor *sd,
return NT_STATUS_ACCESS_DENIED;
}
break;
+ default: /* Other ACE types not handled/supported */
+ break;
}
}