aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-12-29 19:53:48 +0000
committerUlrich Drepper <drepper@redhat.com>2008-12-29 19:53:48 +0000
commit16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd (patch)
treee5ec25258ed683457e23dc312b89cd9b17ad3aba /resolv/res_init.c
parentbf93cd3b8d6643977078c4b67facc0bbb85b03be (diff)
downloadglibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.tar
glibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.tar.gz
glibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.tar.bz2
glibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.zip
* resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r--resolv/res_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c
index 670ad23c22..2bf830cc95 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -420,7 +420,7 @@ __res_vinit(res_state statp, int preinit) {
continue;
}
}
- statp->nscount = nserv;
+ statp->nscount = nservall;
#ifdef _LIBC
if (nservall - nserv > 0) {
statp->_u._ext.nscount6 = nservall - nserv;