diff options
author | Roland McGrath <roland@gnu.org> | 2005-02-16 11:29:42 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-02-16 11:29:42 +0000 |
commit | 694069d2fe9b45f66d9a133266d5efb339078e22 (patch) | |
tree | e81bb39251514836f060e5227d07de373c88533b /nscd | |
parent | c275398b6bd271c8ecd71ae0553cd1317708eb08 (diff) |
2005-02-07 Jakub Jelinek <jakub@redhat.com>
[BZ #741]
* nscd/nscd.c (termination_handler): Avoid segfault if some database
is not enabled.
Diffstat (limited to 'nscd')
-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 82d414ff1e..14b2fff299 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; |