1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* resolv/res_init.c (__res_vinit): Always assign to statp->nscount

after reading name server list.
This commit is contained in:
Ulrich Drepper
2008-12-08 03:59:18 +00:00
parent e87946cce5
commit 905ef0daeb
3 changed files with 5 additions and 4 deletions

View File

@ -420,8 +420,7 @@ __res_vinit(res_state statp, int preinit) {
continue;
}
}
if (nserv > 1)
statp->nscount = nserv;
statp->nscount = nserv;
#ifdef _LIBC
if (nservall - nserv > 0) {
statp->_u._ext.nscount6 = nservall - nserv;