diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-08-22 03:14:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-08-22 03:14:29 +0000 |
commit | 1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d (patch) | |
tree | b94b2b37659fd22373f3f20e2ca964a46d54759c /nscd/hstcache.c | |
parent | a30d41c1d2c69b34e6f19dc1f92881f18e75349c (diff) | |
download | glibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.tar glibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.tar.gz glibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.tar.bz2 glibc-1ce7d80ddc62d4bb3e8e4f89fbcb6fa21361733d.zip |
[BZ #4814]
* resolv/res_hconf.c: Prepare for compiling outside libc.
* nscd/res_hconf.c: New file.
* nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
the new file.
* nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
* nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
Diffstat (limited to 'nscd/hstcache.c')
-rw-r--r-- | nscd/hstcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 65adf318c5..74de8f6567 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -196,7 +196,7 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req, /* Determine the number of addresses. */ h_addr_list_cnt = 0; - for (cnt = 0; hst->h_addr_list[cnt]; ++cnt) + while (hst->h_addr_list[h_addr_list_cnt] != NULL) ++h_addr_list_cnt; if (h_addr_list_cnt == 0) |