projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c25ebe
)
(res_nsend): Use it instead of nscount.
author
drepper
<drepper>
Fri, 5 Jan 2001 02:35:42 +0000
(
02:35
+0000)
committer
drepper
<drepper>
Fri, 5 Jan 2001 02:35:42 +0000
(
02:35
+0000)
resolv/res_send.c
patch
|
blob
|
history
diff --git
a/resolv/res_send.c
b/resolv/res_send.c
index
cc9fd00
..
751a550
100644
(file)
--- 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 the ns_addr_list in the resolver context has changed, then
* invalidate our cached copy and the associated timing data.
*/
- if (EXT(statp).ns
count != 0
) {
+ if (EXT(statp).ns
init
) {
int needclose = 0;
if (EXT(statp).nscount != statp->nscount)
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.
*/
/*
* Maybe initialize our private copy of the ns_addr_list.
*/
- if (EXT(statp).ns
coun
t == 0) {
+ if (EXT(statp).ns
ini
t == 0) {
#ifdef _LIBC
n = 0;
#endif
#ifdef _LIBC
n = 0;
#endif
@@
-454,6
+454,7
@@
res_nsend(res_state statp,
#endif
}
EXT(statp).nscount = statp->nscount;
#endif
}
EXT(statp).nscount = statp->nscount;
+ EXT(statp).nsinit = 1;
#ifdef _LIBC
/* If holes left, free memory and set to NULL */
while (n < MAXNS) {
#ifdef _LIBC
/* If holes left, free memory and set to NULL */
while (n < MAXNS) {