about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 651084c770..121f15064b 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -207,7 +207,8 @@ invalidate_cache (char *key)
     number = hstdb;
   else return;
 
-  prune_cache (&dbs[number], LONG_MAX);
+  if (dbs[number].enabled)
+    prune_cache (&dbs[number], LONG_MAX);
 }