getaddrinfo: Remove unreachable return statement from gaih_inet

(cherry picked from commit 0df595b23a)
This commit is contained in:
Florian Weimer 2017-08-08 18:48:05 +02:00
parent 84e7ab5b1b
commit 346d7f942d
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2017-08-08 Florian Weimer <fweimer@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
return statement.
2017-06-24 Florian Weimer <fweimer@redhat.com>
[BZ #21295]

View File

@ -415,13 +415,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);