Set hdb->hdb_db for ldap.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20110 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-02-01 13:18:22 +00:00
parent 708ee30afd
commit 7d5e25b4ba

View File

@@ -1701,14 +1701,14 @@ hdb_ldap_common(krb5_context context,
}
memset(*db, 0, sizeof(**db));
h = malloc(sizeof(*h));
h = calloc(1, sizeof(*h));
if (h == NULL) {
krb5_set_error_string(context, "malloc: out of memory");
free(*db);
*db = NULL;
return ENOMEM;
}
memset(h, 0, sizeof(*h));
(*db)->hdb_db = h;
/* XXX */
if (asprintf(&(*db)->hdb_name, "ldap:%s", search_base) == -1) {