diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-10-08 23:24:42 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-10-08 23:24:42 +0300 |
commit | 690063ec7ac448eba5233dee3b1602e4c01f4b75 (patch) | |
tree | eeaa8142db5b414d7f0c556374063ea2d57447a8 /lib | |
parent | e2bb02092abe1321c534ad8a6c168b2803245cc5 (diff) | |
download | eclat-690063ec7ac448eba5233dee3b1602e4c01f4b75.tar.gz eclat-690063ec7ac448eba5233dee3b1602e4c01f4b75.tar.bz2 |
Remove spurious code.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldapmap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/ldapmap.c b/lib/ldapmap.c index 5ef20cb..590a111 100644 --- a/lib/ldapmap.c +++ b/lib/ldapmap.c @@ -555,15 +555,8 @@ get_ldap_attrs(LDAP *ld, LDAPMessage *msg, const char *attr) ret[i] = p; } - if (i < count) { - while (--i >= 0) - free(ret[i]); - free(ret); - ret = NULL; - } else { - ret[i] = NULL; - qsort(ret, i, sizeof(ret[0]), keycmp); - } + ret[i] = NULL; + qsort(ret, i, sizeof(ret[0]), keycmp); ldap_value_free_len(values); return ret; |