Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-04-17 23:12:21 +0200
committerArthur de Jong <arthur@arthurdejong.org>2008-04-17 23:12:21 +0200
commit2e48b85903b04117f9314b9ed69f0ac2d4d78356 (patch)
tree3414b0f55788c52c3ed8da25977ddb632a3f0c4e /nslcd
parent15b3f8bc5a757d984e5510fdaec46196d8939a56 (diff)
change dict_values_first() and dict_values_next() into dict_loop_first() and dict_loop_next() to have a looping mechanism over keys and values
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@675 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/myldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index 12df572..6547113 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -169,8 +169,8 @@ static void myldap_entry_free(MYLDAP_ENTRY *entry)
if (entry->exploded_rdn!=NULL)
ldap_value_free(entry->exploded_rdn);
/* free all attribute values */
- dict_values_first(entry->attributevalues);
- while ((values=(char **)dict_values_next(entry->attributevalues))!=NULL)
+ dict_loop_first(entry->attributevalues);
+ while (dict_loop_next(entry->attributevalues,NULL,(void *)&values)!=NULL)
ldap_value_free(values);
dict_free(entry->attributevalues);
/* we don't need the result anymore, ditch it. */