From: Florian Weimer Date: Tue, 8 Aug 2017 16:48:05 +0000 (+0200) Subject: getaddrinfo: Remove unreachable return statement from gaih_inet X-Git-Tag: glibc-2.27~1211 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0df595b23a829c9169ec418a19eef9006b4ae801;p=thirdparty%2Fglibc.git getaddrinfo: Remove unreachable return statement from gaih_inet --- diff --git a/ChangeLog b/ChangeLog index 8308b53a693..40d196f2b68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-08-08 Florian Weimer + + * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable + return statement. + 2017-08-08 H.J. Lu [BZ #21913] diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 699411cc92f..09f85fc472f 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);