diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-01-02 21:14:11 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-01-02 21:14:11 +0000 |
commit | e3e60f6bdc80109e6cfbd092049a4bbb2f43c457 (patch) | |
tree | d166064d5e5bfd7821e133a5c76d8aae50d81766 /resolv/res_init.c | |
parent | 033b8b2d4de5cd8abe4278cd2b30c50d7a78e886 (diff) |
Updated to fedora-glibc-20090102T2110cvs/fedora-glibc-2_9_90-1
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r-- | resolv/res_init.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index a2840968f3..2bf830cc95 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -183,7 +183,7 @@ __res_vinit(res_state statp, int preinit) { #endif statp->nsaddr.sin_family = AF_INET; statp->nsaddr.sin_port = htons(NAMESERVER_PORT); - statp->nscount = 1; + statp->nscount = 0; statp->ndots = 1; statp->pfcode = 0; statp->_vcsock = -1; @@ -314,9 +314,9 @@ __res_vinit(res_state statp, int preinit) { cp++; if ((*cp != '\0') && (*cp != '\n') && __inet_aton(cp, &a)) { - statp->nsaddr_list[nserv].sin_addr = a; - statp->nsaddr_list[nserv].sin_family = AF_INET; - statp->nsaddr_list[nserv].sin_port = + statp->nsaddr_list[nservall].sin_addr = a; + statp->nsaddr_list[nservall].sin_family = AF_INET; + statp->nsaddr_list[nservall].sin_port = htons(NAMESERVER_PORT); nserv++; #ifdef _LIBC @@ -420,8 +420,7 @@ __res_vinit(res_state statp, int preinit) { continue; } } - if (nserv > 1) - statp->nscount = nserv; + statp->nscount = nservall; #ifdef _LIBC if (nservall - nserv > 0) { statp->_u._ext.nscount6 = nservall - nserv; |