1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

nss_dns: Remove dead PTR IPv4-to-IPv6 mapping code

This commit is contained in:
Florian Weimer
2017-09-06 15:11:44 +02:00
parent 5e9c4d17fe
commit c77eb96925
3 changed files with 186 additions and 20 deletions

View File

@ -889,19 +889,6 @@ getanswer_r (struct resolv_context *ctx,
/* bind would put multiple PTR records as aliases, but we don't do
that. */
result->h_name = bp;
if (have_to_map)
{
n = strlen (bp) + 1; /* for the \0 */
if (__glibc_unlikely (n >= MAXHOSTNAMELEN))
{
++had_error;
break;
}
bp += n;
linebuflen -= n;
if (map_v4v6_hostent (result, &bp, &linebuflen))
goto too_small;
}
*h_errnop = NETDB_SUCCESS;
return NSS_STATUS_SUCCESS;
case T_A: