diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-12-08 03:59:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-12-08 03:59:18 +0000 |
commit | 905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8 (patch) | |
tree | c92b3ef3b1da17def65b34fd3b0e92a6f9b0380c /resolv/res_init.c | |
parent | e87946cce5b1bac5105f97542c93bc3101bde254 (diff) | |
download | glibc-905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8.zip glibc-905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8.tar.gz glibc-905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8.tar.bz2 |
* resolv/res_init.c (__res_vinit): Always assign to statp->nscount
after reading name server list.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r-- | resolv/res_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index 0cdd55e..670ad23 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -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; |