summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-11-18 16:38:34 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-18 17:28:52 +0100
commit7a8f19affd2a050fd2e9631a54c0e67048d3920c (patch)
tree16089743292b1fcb07f2bba8304fff64b76300e7 /src/providers
parent620cbbcadd42627e55210045cac66c66df4f1243 (diff)
downloadsssd-7a8f19affd2a050fd2e9631a54c0e67048d3920c.tar.gz
sssd-7a8f19affd2a050fd2e9631a54c0e67048d3920c.tar.xz
sssd-7a8f19affd2a050fd2e9631a54c0e67048d3920c.zip
LDAP: Initialize user count for AD matching rule
https://fedorahosted.org/sssd/ticket/2157 If AD matching rule was selected, but the group was empty, the SSSD accessed random data. Initializing count to zero prevents that.
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_async_groups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index ff4f1bbc1..53bae7749 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -1828,7 +1828,7 @@ static void sdap_ad_match_rule_members_process(struct tevent_req *subreq)
struct sysdb_attrs *group = state->groups[0];
struct ldb_message_element *member_el;
struct ldb_message_element *orig_dn_el;
- size_t count;
+ size_t count = 0;
size_t i;
hash_table_t *ghosts;