mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-sam: Array compared against 0 in ipasam_set_trusted_domain()
ipa_mspac_well_known_sids is a globally defined array so the check was always true. Fixes https://fedorahosted.org/freeipa/ticket/3423
This commit is contained in:
@@ -2293,7 +2293,7 @@ static NTSTATUS ipasam_set_trusted_domain(struct pdb_methods *methods,
|
||||
&td->trust_forest_trust_info);
|
||||
}
|
||||
|
||||
for (i = 0; ipa_mspac_well_known_sids && ipa_mspac_well_known_sids[i]; i++) {
|
||||
for (i = 0; ipa_mspac_well_known_sids[i]; i++) {
|
||||
smbldap_make_mod(priv2ld(ldap_state), entry, &mods,
|
||||
LDAP_ATTRIBUTE_SID_BLACKLIST_INCOMING,
|
||||
ipa_mspac_well_known_sids[i]);
|
||||
|
||||
Reference in New Issue
Block a user