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:
@@ -1701,14 +1701,14 @@ hdb_ldap_common(krb5_context context,
|
|||||||
}
|
}
|
||||||
memset(*db, 0, sizeof(**db));
|
memset(*db, 0, sizeof(**db));
|
||||||
|
|
||||||
h = malloc(sizeof(*h));
|
h = calloc(1, sizeof(*h));
|
||||||
if (h == NULL) {
|
if (h == NULL) {
|
||||||
krb5_set_error_string(context, "malloc: out of memory");
|
krb5_set_error_string(context, "malloc: out of memory");
|
||||||
free(*db);
|
free(*db);
|
||||||
*db = NULL;
|
*db = NULL;
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
memset(h, 0, sizeof(*h));
|
(*db)->hdb_db = h;
|
||||||
|
|
||||||
/* XXX */
|
/* XXX */
|
||||||
if (asprintf(&(*db)->hdb_name, "ldap:%s", search_base) == -1) {
|
if (asprintf(&(*db)->hdb_name, "ldap:%s", search_base) == -1) {
|
||||||
|
Reference in New Issue
Block a user