summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-11-20 20:49:51 -0500
committerSimo Sorce <ssorce@redhat.com>2012-01-11 12:04:18 -0500
commitcd6ac5b0e3ec2e16dc299bf0651742a72f12cc80 (patch)
tree3c1c045a1a43237835fd66afa9b9962dcbe4832b /daemons
parent250afd87cf0709e5596ee9a85b72d59c4763f93c (diff)
downloadfreeipa.git-cd6ac5b0e3ec2e16dc299bf0651742a72f12cc80.tar.gz
freeipa.git-cd6ac5b0e3ec2e16dc299bf0651742a72f12cc80.tar.xz
freeipa.git-cd6ac5b0e3ec2e16dc299bf0651742a72f12cc80.zip
ipa-kdb: fix free() of uninitialized var
Diffstat (limited to 'daemons')
-rw-r--r--daemons/ipa-kdb/ipa_kdb_principals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb_principals.c b/daemons/ipa-kdb/ipa_kdb_principals.c
index f5bef840..431fd27a 100644
--- a/daemons/ipa-kdb/ipa_kdb_principals.c
+++ b/daemons/ipa-kdb/ipa_kdb_principals.c
@@ -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++) {