diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-09-16 17:09:16 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-23 13:00:42 -0400 |
commit | 4c90b91082a2fe09fa802c28572b54be07c21fdf (patch) | |
tree | 505dc095244dab9af6b877814c9ff781367c9505 | |
parent | cf3be5c32a7ddf878896da86ce5f04be7a3337ba (diff) | |
download | sssd-4c90b91082a2fe09fa802c28572b54be07c21fdf.tar.gz sssd-4c90b91082a2fe09fa802c28572b54be07c21fdf.tar.xz sssd-4c90b91082a2fe09fa802c28572b54be07c21fdf.zip |
Fix sysdb_attrs_to_list
-rw-r--r-- | src/db/sysdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 78af9cc53..0091023b6 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -1991,13 +1991,13 @@ errno_t sysdb_attrs_to_list(TALLOC_CTX *memctx, for (attr_idx = 0; attr_idx < attr_count; attr_idx++) { /* Examine each attribute within the entry */ for (i = 0; i < attrs[attr_idx]->num; i++) { - if (strcasecmp(attrs[attr_idx]->a->name, attr_name) == 0) { + if (strcasecmp(attrs[attr_idx]->a[i].name, attr_name) == 0) { /* Attribute name matches the requested name * Copy it to the output list */ list[list_idx] = talloc_strdup( list, - (const char *)attrs[attr_idx]->a->values[0].data); + (const char *)attrs[attr_idx]->a[i].values[0].data); if (!list[list_idx]) { talloc_free(list); return ENOMEM; |