From 6b8911bca726c6faa2f8d01a0a56ee10c75ad25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 1 Jul 2004 01:58:17 +0000 Subject: [PATCH] (LDAP__connect): call ldap_initialize with right argument git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14014 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/hdb-ldap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/hdb/hdb-ldap.c b/lib/hdb/hdb-ldap.c index fab6e1100..313bb629f 100644 --- a/lib/hdb/hdb-ldap.c +++ b/lib/hdb/hdb-ldap.c @@ -1400,7 +1400,8 @@ LDAP_rename(krb5_context context, HDB * db, const char *new_name) return HDB_ERR_DB_INUSE; } -static krb5_error_code LDAP__connect(krb5_context context, HDB * db) +static krb5_error_code +LDAP__connect(krb5_context context, HDB * db) { int rc, version = LDAP_VERSION3; /* @@ -1427,7 +1428,7 @@ static krb5_error_code LDAP__connect(krb5_context context, HDB * db) if (HDB2LDAP(db) != NULL) /* server is UP */ return 0; - rc = ldap_initialize((LDAP **)&db->hdb_db, "ldapi:///"); + rc = ldap_initialize(&((struct hdbldapdb *)db->hdb_db)->h_lp, "ldapi:///"); if (rc != LDAP_SUCCESS) { krb5_set_error_string(context, "ldap_initialize: %s", ldap_err2string(rc));