diff options
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r-- | nscd/nscd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index b66abb5442..01baed8388 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -442,6 +442,9 @@ termination_handler (int signum) /* Synchronize memory. */ for (int cnt = 0; cnt < lastdb; ++cnt) { + if (!dbs[cnt].enabled) + continue; + /* Make sure nobody keeps using the database. */ dbs[cnt].head->timestamp = 0; |