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:
@ -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:
|
||||
|
Reference in New Issue
Block a user