summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-04-07 18:47:23 +0200
committerMartin Nagy <mnagy@redhat.com>2009-04-23 16:45:53 +0200
commitf221f70dfe242e56743fc1c5814de9bdcb7ee527 (patch)
tree620b5faf882f619e80d6674ae2c30e7ae7dd35cc /src/cache.c
parentfa6b0eac58ca1aac81b538095bec5522ce3388a2 (diff)
downloadldap_driver_testing-f221f70dfe242e56743fc1c5814de9bdcb7ee527.tar.gz
ldap_driver_testing-f221f70dfe242e56743fc1c5814de9bdcb7ee527.tar.xz
ldap_driver_testing-f221f70dfe242e56743fc1c5814de9bdcb7ee527.zip
Fix rdata parsing.
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;