summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cache.c b/src/cache.c
index 683f3fd..40a2289 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -165,7 +165,7 @@ destroy_ldap_cache(ldap_cache_t **cachep)
isc_result_t
cached_ldap_rdatalist_get(isc_mem_t *mctx, ldap_cache_t *cache,
ldap_db_t *ldap_db, dns_name_t *name,
- ldapdb_rdatalist_t *rdatalist)
+ dns_name_t *origin, ldapdb_rdatalist_t *rdatalist)
{
isc_result_t result;
ldapdb_rdatalist_t rdlist;
@@ -176,7 +176,8 @@ cached_ldap_rdatalist_get(isc_mem_t *mctx, ldap_cache_t *cache,
REQUIRE(cache != NULL);
if (cache->rbt == NULL)
- return ldapdb_rdatalist_get(mctx, ldap_db, name, rdatalist);
+ return ldapdb_rdatalist_get(mctx, ldap_db, name, origin,
+ rdatalist);
CONTROLED_LOCK(&cache->mutex);
result = dns_rbt_findname(cache->rbt, name, 0, NULL, (void *)&node);
@@ -200,7 +201,8 @@ cached_ldap_rdatalist_get(isc_mem_t *mctx, ldap_cache_t *cache,
if (!in_cache) {
INIT_LIST(rdlist);
- result = ldapdb_rdatalist_get(mctx, ldap_db, name, &rdlist);
+ result = ldapdb_rdatalist_get(mctx, ldap_db, name, origin,
+ &rdlist);
/* TODO: Cache entries that are not found. */
if (result != ISC_R_SUCCESS)
goto cleanup;