summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index fa57563..683f3fd 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -201,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);
- if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND)
+ /* TODO: Cache entries that are not found. */
+ if (result != ISC_R_SUCCESS)
goto cleanup;
CONTROLED_LOCK(&cache->mutex);
/* Check again to make sure. */