From: drepper Date: Fri, 5 Jan 2001 02:35:42 +0000 (+0000) Subject: (res_nsend): Use it instead of nscount. X-Git-Tag: glibc-2_2~192 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=e1a959ae48bc1874498ee97460860db42c5889da (res_nsend): Use it instead of nscount. --- diff --git a/resolv/res_send.c b/resolv/res_send.c index cc9fd0070d..751a5506a1 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -394,7 +394,7 @@ res_nsend(res_state statp, * If the ns_addr_list in the resolver context has changed, then * invalidate our cached copy and the associated timing data. */ - if (EXT(statp).nscount != 0) { + if (EXT(statp).nsinit) { int needclose = 0; if (EXT(statp).nscount != statp->nscount) @@ -420,7 +420,7 @@ res_nsend(res_state statp, /* * Maybe initialize our private copy of the ns_addr_list. */ - if (EXT(statp).nscount == 0) { + if (EXT(statp).nsinit == 0) { #ifdef _LIBC n = 0; #endif @@ -454,6 +454,7 @@ res_nsend(res_state statp, #endif } EXT(statp).nscount = statp->nscount; + EXT(statp).nsinit = 1; #ifdef _LIBC /* If holes left, free memory and set to NULL */ while (n < MAXNS) {