From 5f76f986ff358faf940778ed2396d9f0f3951f46 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 14 Jun 2007 12:19:53 +0000 Subject: r23488: hdb_openp has changed from void * to int... lha: what is the reason for this? it's really bad to use an int for storing a pointer value... metze (This used to be commit 625a6598566761121f16e47e88bdd0fbb0f2846c) --- source4/kdc/hdb-ldb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/kdc/hdb-ldb.c b/source4/kdc/hdb-ldb.c index 11ae2a0064..b80d9f3bce 100644 --- a/source4/kdc/hdb-ldb.c +++ b/source4/kdc/hdb-ldb.c @@ -1015,7 +1015,7 @@ static krb5_error_code LDB_seq(krb5_context context, HDB *db, unsigned flags, hd if (ret != 0) { talloc_free(priv); - db->hdb_openp = NULL; + db->hdb_openp = 0; } else { talloc_free(mem_ctx); } @@ -1094,13 +1094,14 @@ static krb5_error_code LDB_firstkey(krb5_context context, HDB *db, unsigned flag priv->msgs = talloc_steal(priv, res->msgs); talloc_free(res); - db->hdb_openp = priv; + /* why has hdb_openp changed from (void *) to (int) ??? */ + db->hdb_openp = (int)priv; ret = LDB_seq(context, db, flags, entry); - + if (ret != 0) { talloc_free(priv); - db->hdb_openp = NULL; + db->hdb_openp = 0; } else { talloc_free(mem_ctx); } -- cgit