Blame SOURCES/glibc-rh804630.patch
|
|
b40826 |
diff -rup c/resolv/res_send.c d/resolv/res_send.c
|
|
|
b40826 |
--- c/resolv/res_send.c 2012-01-01 05:16:32.000000000 -0700
|
|
|
b40826 |
+++ d/resolv/res_send.c 2012-03-30 12:39:30.862467628 -0600
|
|
|
b40826 |
@@ -409,6 +409,7 @@ __libc_res_nsend(res_state statp, const
|
|
|
b40826 |
*/
|
|
|
b40826 |
if (EXT(statp).nsinit == 0) {
|
|
|
b40826 |
unsigned char map[MAXNS];
|
|
|
b40826 |
+ unsigned int ext_total_nscount;
|
|
|
b40826 |
|
|
|
b40826 |
memset (map, MAXNS, sizeof (map));
|
|
|
b40826 |
for (n = 0; n < MAXNS; n++) {
|
|
|
b40826 |
@@ -422,8 +423,9 @@ __libc_res_nsend(res_state statp, const
|
|
|
b40826 |
}
|
|
|
b40826 |
}
|
|
|
b40826 |
n = statp->nscount;
|
|
|
b40826 |
- if (statp->nscount > EXT(statp).nscount)
|
|
|
b40826 |
- for (n = EXT(statp).nscount, ns = 0;
|
|
|
b40826 |
+ ext_total_nscount = EXT(statp).nscount + EXT(statp).nscount6;
|
|
|
b40826 |
+ if (statp->nscount > ext_total_nscount)
|
|
|
b40826 |
+ for (n = ext_total_nscount, ns = 0;
|
|
|
b40826 |
n < statp->nscount; n++) {
|
|
|
b40826 |
while (ns < MAXNS
|
|
|
b40826 |
&& EXT(statp).nsmap[ns] != MAXNS)
|