summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-12-08 14:05:22 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-12-08 23:35:30 -0500
commit4fdcab8ba579b481870d5a6a422fcca70712d30f (patch)
treee037f61d3f660cdd5011c0c56ae4819067b2614d /server
parent4532cccb737b60330b43e886a82e28458ca3b956 (diff)
downloadsssd-4fdcab8ba579b481870d5a6a422fcca70712d30f.tar.gz
sssd-4fdcab8ba579b481870d5a6a422fcca70712d30f.tar.xz
sssd-4fdcab8ba579b481870d5a6a422fcca70712d30f.zip
dhash: Add private pointer for delete callback
Also pass a flag to the delete callback to tell it if this is a normal entry removal or we are cleaning up the tbale definitively.
Diffstat (limited to 'server')
-rw-r--r--server/responder/common/responder_dp.c2
-rw-r--r--server/util/find_uid.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/responder/common/responder_dp.c b/server/responder/common/responder_dp.c
index 1fe1d95ec..305f6d8fa 100644
--- a/server/responder/common/responder_dp.c
+++ b/server/responder/common/responder_dp.c
@@ -286,7 +286,7 @@ int sss_dp_send_acct_req(struct resp_ctx *rctx, TALLOC_CTX *callback_memctx,
if (dp_requests == NULL) {
/* Create a hash table to handle queued update requests */
- ret = hash_create(10, &dp_requests, NULL);
+ ret = hash_create(10, &dp_requests, NULL, NULL);
if (ret != HASH_SUCCESS) {
fprintf(stderr, "cannot create hash table (%s)\n", hash_error_string(ret));
return EIO;
diff --git a/server/util/find_uid.c b/server/util/find_uid.c
index 09c47b3d8..63907f17a 100644
--- a/server/util/find_uid.c
+++ b/server/util/find_uid.c
@@ -263,7 +263,8 @@ errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table)
int ret;
ret = hash_create_ex(INITIAL_TABLE_SIZE, table, 0, 0, 0, 0,
- hash_talloc, hash_talloc_free, mem_ctx, NULL);
+ hash_talloc, hash_talloc_free, mem_ctx,
+ NULL, NULL);
if (ret != HASH_SUCCESS) {
DEBUG(1, ("hash_create_ex failed [%s]\n", hash_error_string(ret)));
return ENOMEM;