about summary refs log tree commit diff
path: root/resolv/nss_dns
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-09-06 15:11:44 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-09-06 15:11:44 +0200
commitc77eb96925b719001237ca7c9e3cef40d795d66b (patch)
tree4a5eb74bf3b843f104763d257d77cb3055944b72 /resolv/nss_dns
parent5e9c4d17feb9910f489ad2915d0b6e00597a0f11 (diff)
downloadglibc-c77eb96925b719001237ca7c9e3cef40d795d66b.tar.gz
glibc-c77eb96925b719001237ca7c9e3cef40d795d66b.tar.xz
glibc-c77eb96925b719001237ca7c9e3cef40d795d66b.zip
nss_dns: Remove dead PTR IPv4-to-IPv6 mapping code
Diffstat (limited to 'resolv/nss_dns')
-rw-r--r--resolv/nss_dns/dns-host.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
index 7cd54ab504..1e85e4f08f 100644
--- a/resolv/nss_dns/dns-host.c
+++ b/resolv/nss_dns/dns-host.c
@@ -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: