diff options
author | Michal Židek <mzidek@redhat.com> | 2015-10-13 14:25:08 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-10-23 10:33:04 +0200 |
commit | 2bbc9d6f8d5f2c1b07fd6968314b7f530b7f3a4d (patch) | |
tree | 5c91ed93c2abd503c667cfbdd44aae322d382b57 /src/db | |
parent | f191a6f9f3313df88eaf3debf52eebfe5d3dee59 (diff) | |
download | sssd-2bbc9d6f8d5f2c1b07fd6968314b7f530b7f3a4d.tar.gz sssd-2bbc9d6f8d5f2c1b07fd6968314b7f530b7f3a4d.tar.xz sssd-2bbc9d6f8d5f2c1b07fd6968314b7f530b7f3a4d.zip |
sysdb: Use get_next_domain instead of dom->next
Recent get_next_domain refactoring enabled
us to use it also for disabled domains.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_subdomains.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index 4b4bb0d6c..b2bf1a074 100644 --- a/src/db/sysdb_subdomains.c +++ b/src/db/sysdb_subdomains.c @@ -312,8 +312,8 @@ errno_t sysdb_update_subdomains(struct sss_domain_info *domain) SYSDB_SUBDOMAIN_TRUST_DIRECTION, 0); - /* explicitly use dom->next as we need to check 'disabled' domains */ - for (dom = domain->subdomains; dom; dom = dom->next) { + for (dom = domain->subdomains; dom; + dom = get_next_domain(dom, SSS_GND_INCLUDE_DISABLED)) { if (strcasecmp(dom->name, name) == 0) { sss_domain_set_state(dom, DOM_ACTIVE); |