about summary refs log tree commit diff
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
parentbf93cd3b8d6643977078c4b67facc0bbb85b03be (diff)
downloadglibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.tar.gz
glibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.tar.xz
glibc-16b7dc27a96826f2fe7ea738a7d97521c7f4f3dd.zip
* resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
-rw-r--r--ChangeLog4
-rw-r--r--resolv/res_init.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ef81776cc2..f271715077 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-29  Ulrich Drepper  <drepper@redhat.com>
+
+	* resolv/res_init.c (__res_vinit): Count all servers in	statp->nscount.
+
 2008-12-21  Bruno Haible  <bruno@clisp.org>
 
 	[BZ #9677]
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;