diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-07 05:31:00 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-07 05:31:00 +0000 |
commit | a6fa53288f51eac715cf9899ffe3cfd66e7dc42c (patch) | |
tree | 5536782944443a3e3e580c9bcbf7c1e7295bb9ca /nscd/connections.c | |
parent | 506073094cda49a449c421c5b60f60616a6f898a (diff) | |
download | glibc-a6fa53288f51eac715cf9899ffe3cfd66e7dc42c.tar.gz glibc-a6fa53288f51eac715cf9899ffe3cfd66e7dc42c.tar.xz glibc-a6fa53288f51eac715cf9899ffe3cfd66e7dc42c.zip |
[BZ #3924]
* sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few more little bugs in creating the stack frame when pltexit has to be called.
Diffstat (limited to 'nscd/connections.c')
-rw-r--r-- | nscd/connections.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nscd/connections.c b/nscd/connections.c index 2572a42ee7..26d75d2978 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -378,8 +378,9 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr) nscd_ssize_t he_cnt = 0; for (nscd_ssize_t cnt = 0; cnt < head->module; ++cnt) { - ref_t first = head->array[cnt]; - ref_t work = first; + ref_t trail = head->array[cnt]; + ref_t work = trail; + int tick = 0; while (work != ENDREF) { @@ -439,9 +440,12 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr) work = here->next; - if (work == first) + if (work == trail) /* A circular list, this must not happen. */ goto fail; + if (tick) + trail = ((struct hashentry *) (data + trail))->next; + tick = 1 - tick; } } |