Andreas Schwab
44414488d6
- Import patches from 2.23 branch OBS-URL: https://build.opensuse.org/request/show/394998 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=436
20 lines
710 B
Diff
20 lines
710 B
Diff
2016-03-15 Andreas Schwab <schwab@suse.de>
|
|
|
|
[BZ #19257]
|
|
* resolv/res_init.c (__res_iclose): Use statp->nscount instead of
|
|
statp->_u._ext.nscount as loop count.
|
|
|
|
Index: glibc-2.23/resolv/res_init.c
|
|
===================================================================
|
|
--- glibc-2.23.orig/resolv/res_init.c
|
|
+++ glibc-2.23/resolv/res_init.c
|
|
@@ -594,7 +594,7 @@ __res_iclose(res_state statp, bool free_
|
|
statp->_vcsock = -1;
|
|
statp->_flags &= ~(RES_F_VC | RES_F_CONN);
|
|
}
|
|
- for (ns = 0; ns < statp->_u._ext.nscount; ns++)
|
|
+ for (ns = 0; ns < statp->nscount; ns++)
|
|
if (statp->_u._ext.nsaddrs[ns]) {
|
|
if (statp->_u._ext.nssocks[ns] != -1) {
|
|
close_not_cancel_no_status(statp->_u._ext.nssocks[ns]);
|