This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.26-48-g0df595b
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 8 Aug 2017 16:55:05 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26-48-g0df595b
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, master has been updated
via 0df595b23a829c9169ec418a19eef9006b4ae801 (commit)
from 086df229eef36041cae4a633c6fde6150f18d75e (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=0df595b23a829c9169ec418a19eef9006b4ae801
commit 0df595b23a829c9169ec418a19eef9006b4ae801
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Aug 8 18:48:05 2017 +0200
getaddrinfo: Remove unreachable return statement from gaih_inet
diff --git a/ChangeLog b/ChangeLog
index 8308b53..40d196f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-08 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
+ return statement.
+
2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
[BZ #21913]
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 699411c..09f85fc 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -420,13 +420,9 @@ gaih_inet (const char *name, const struct gaih_service *service,
alloca_account (sizeof (struct gaih_servtuple),
alloca_used);
- if ((rc = gaih_inet_serv (service->name,
- tp, req, newp, tmpbuf)))
- {
- if (rc)
- continue;
- return rc;
- }
+ if (gaih_inet_serv (service->name,
+ tp, req, newp, tmpbuf) != 0)
+ continue;
*pst = newp;
pst = &(newp->next);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/posix/getaddrinfo.c | 10 +++-------
2 files changed, 8 insertions(+), 7 deletions(-)
hooks/post-receive
--
GNU C Library master sources