ipa-kdb: fix free() of uninitialized var

This commit is contained in:
Simo Sorce
2011-11-20 20:49:51 -05:00
parent 6d97444620
commit e727dc50cc

View File

@@ -91,6 +91,7 @@ static int ipadb_ldap_attr_to_tl_data(LDAP *lcontext, LDAPMessage *le,
*result = NULL;
prev = NULL;
next = NULL;
vals = ldap_get_values_len(lcontext, le, attrname);
if (vals) {
for (i = 0; vals[i]; i++) {