summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-06-14 12:19:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:19 -0500
commit5f76f986ff358faf940778ed2396d9f0f3951f46 (patch)
tree3956b2308b01396128aa2f51fc04d49d985c1765 /source4/kdc
parente505338bf74c60a235da1a141cad88e472f7bac8 (diff)
downloadsamba-5f76f986ff358faf940778ed2396d9f0f3951f46.tar.gz
samba-5f76f986ff358faf940778ed2396d9f0f3951f46.tar.bz2
samba-5f76f986ff358faf940778ed2396d9f0f3951f46.zip
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)
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/hdb-ldb.c9
1 files changed, 5 insertions, 4 deletions
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);
}