diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-18 16:38:34 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-28 10:48:26 +0100 |
commit | 9fcfa6c6e0469b955459f5df7309df28e0f07cf7 (patch) | |
tree | 395990af9ed28d691871b3d29d317587a6168e1b | |
parent | ce2c2b2a4c8b84c906104654c3a277e1865ab5e3 (diff) | |
download | sssd-9fcfa6c6e0469b955459f5df7309df28e0f07cf7.tar.gz sssd-9fcfa6c6e0469b955459f5df7309df28e0f07cf7.tar.xz sssd-9fcfa6c6e0469b955459f5df7309df28e0f07cf7.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.
-rw-r--r-- | src/providers/ldap/sdap_async_groups.c | 2 |
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 1e9fb6dc4..9b8b8efd7 100644 --- a/src/providers/ldap/sdap_async_groups.c +++ b/src/providers/ldap/sdap_async_groups.c @@ -1841,7 +1841,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; |