summaryrefslogtreecommitdiff
path: root/nscd/connections.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/connections.c')
-rw-r--r--nscd/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 6e48869c68..7d3ff2e43b 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -891,7 +891,7 @@ cannot set socket to close on exec: %s; disabling paranoia mode"),
void
register_traced_file (size_t dbidx, struct traced_file *finfo)
{
- if (! dbs[dbidx].check_file)
+ if (! dbs[dbidx].enabled || ! dbs[dbidx].check_file)
return;
if (__builtin_expect (debug_level > 0, 0))