summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/sam/idmap_rid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/sam/idmap_rid.c b/source3/sam/idmap_rid.c
index ef4b8ef569..6315c6ab2e 100644
--- a/source3/sam/idmap_rid.c
+++ b/source3/sam/idmap_rid.c
@@ -159,6 +159,7 @@ static NTSTATUS rid_idmap_get_domains(uint32 *num_domains, fstring **domain_name
DOM_SID *trusted_domain_sids;
uint32 enum_ctx = 0;
DOM_SID builtin_sid;
+ int own_domains = 2;
/* put the results together */
*num_domains = 1;
@@ -270,7 +271,6 @@ static NTSTATUS rid_idmap_get_domains(uint32 *num_domains, fstring **domain_name
i, trusted_domain_names[i], sid_str));
}
- int own_domains = 2;
if (!sid_equal(domain_sid, get_global_sam_sid()))
++own_domains;