summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorNadezhda Ivanova <nivanova@samba.org>2011-02-22 06:28:19 +0200
committerNadezhda Ivanova <nivanova@samba.org>2011-02-22 12:46:44 +0200
commitbe36596f4e98847c91548d8fb80f708a10ebaea1 (patch)
treecc1c5abebe5e900296a3a90c3a4e3b731e0f2e5f /source4/dsdb
parent85f4f73ed4eacc96005e1eb8a591c84474c20845 (diff)
downloadsamba-be36596f4e98847c91548d8fb80f708a10ebaea1.tar.gz
samba-be36596f4e98847c91548d8fb80f708a10ebaea1.tar.bz2
samba-be36596f4e98847c91548d8fb80f708a10ebaea1.zip
s4-descriptor: Fixed some missing curly braces.
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/descriptor.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c
index 19cea0abf0..6d8c40ffc1 100644
--- a/source4/dsdb/samdb/ldb_modules/descriptor.c
+++ b/source4/dsdb/samdb/ldb_modules/descriptor.c
@@ -81,28 +81,31 @@ struct dom_sid *get_default_ag(TALLOC_CTX *mem_ctx,
}
if (ldb_dn_compare(nc_root, ldb_get_schema_basedn(ldb)) == 0) {
- if (security_token_has_sid(token, sa_sid))
+ if (security_token_has_sid(token, sa_sid)) {
dag_sid = dom_sid_dup(mem_ctx, sa_sid);
- else if (security_token_has_sid(token, ea_sid))
+ } else if (security_token_has_sid(token, ea_sid)) {
dag_sid = dom_sid_dup(mem_ctx, ea_sid);
- else if (security_token_has_sid(token, da_sid))
+ } else if (security_token_has_sid(token, da_sid)) {
dag_sid = dom_sid_dup(mem_ctx, da_sid);
- else
+ } else {
dag_sid = NULL;
+ }
} else if (ldb_dn_compare(nc_root, ldb_get_config_basedn(ldb)) == 0) {
- if (security_token_has_sid(token, ea_sid))
+ if (security_token_has_sid(token, ea_sid)) {
dag_sid = dom_sid_dup(mem_ctx, ea_sid);
- else if (security_token_has_sid(token, da_sid))
+ } else if (security_token_has_sid(token, da_sid)) {
dag_sid = dom_sid_dup(mem_ctx, da_sid);
- else
+ } else {
dag_sid = NULL;
+ }
} else if (ldb_dn_compare(nc_root, ldb_get_default_basedn(ldb)) == 0) {
- if (security_token_has_sid(token, da_sid))
+ if (security_token_has_sid(token, da_sid)) {
dag_sid = dom_sid_dup(mem_ctx, da_sid);
- else if (security_token_has_sid(token, ea_sid))
+ } else if (security_token_has_sid(token, ea_sid)) {
dag_sid = dom_sid_dup(mem_ctx, ea_sid);
- else
+ } else {
dag_sid = NULL;
+ }
} else {
dag_sid = NULL;
}