mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 14:20:13 +00:00
getaddrinfo: Remove unreachable return statement from gaih_inet
(cherry picked from commit 0df595b23a
)
This commit is contained in:
parent
947e2e0a94
commit
4fdd75e446
@ -1,3 +1,8 @@
|
||||
2017-08-08 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
|
||||
return statement.
|
||||
|
||||
2017-08-22 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* assert/Makefile [$(have-cxx-thread_local)]: Move conditional
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user