This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch gentoo/2.22 updated. glibc-2.22-48-g066bfd4
- From: vapier at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 Mar 2016 21:14:02 -0000
- Subject: GNU C Library master sources branch gentoo/2.22 updated. glibc-2.22-48-g066bfd4
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, gentoo/2.22 has been updated
via 066bfd462534b7141aaaac23aadc5c0ec3e4e7f3 (commit)
from 3ffe1a9e559b88ed2c1096a798cec5fb17194e99 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=066bfd462534b7141aaaac23aadc5c0ec3e4e7f3
commit 066bfd462534b7141aaaac23aadc5c0ec3e4e7f3
Author: Andreas Schwab <schwab@suse.de>
Date: Wed Nov 18 15:45:59 2015 +0100
Fix resource leak in resolver (bug 19257)
The number of currently defined nameservers is stored in ->nscount,
whereas ->_u._ext.nscount is set by __libc_res_nsend only after local
initializations.
(cherry picked from commit 5e7fdabd7df1fc6c56d104e61390bf5a6b526c38)
(cherry picked from commit e5d560e0e7f621b5cde4bcbbac424f8b2742395a)
diff --git a/resolv/res_init.c b/resolv/res_init.c
index 66561ff..77873c1 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -593,7 +593,7 @@ __res_iclose(res_state statp, bool free_addr) {
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]);
-----------------------------------------------------------------------
Summary of changes:
resolv/res_init.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources