From 905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 8 Dec 2008 03:59:18 +0000 Subject: * resolv/res_init.c (__res_vinit): Always assign to statp->nscount after reading name server list. --- resolv/res_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'resolv') 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; -- cgit v1.1