summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-09-16 17:09:16 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-09-22 09:55:25 -0400
commit8375f313b21253f72ad958d954f558a74141cf54 (patch)
tree3482450490efebdbd7a054354e5965f202d19a6a /src/db
parente36ec25b898ecba4e28b244683c57a4372731042 (diff)
downloadsssd-8375f313b21253f72ad958d954f558a74141cf54.tar.gz
sssd-8375f313b21253f72ad958d954f558a74141cf54.tar.xz
sssd-8375f313b21253f72ad958d954f558a74141cf54.zip
Fix sysdb_attrs_to_list
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 5f002d844..a2a94a5b7 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -1686,13 +1686,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;