View | Details | Raw Unified | Return to bug 4980
Collapse All | Expand All

(-)glibc-2.6.1/nss/nss_files/files-hosts.c.ORIG (-5 lines)
Lines 67-77 Link Here
67
	 {
67
	 {
68
	   if (IN6_IS_ADDR_V4MAPPED (entdata->host_addr))
68
	   if (IN6_IS_ADDR_V4MAPPED (entdata->host_addr))
69
	     memcpy (entdata->host_addr, entdata->host_addr + 12, INADDRSZ);
69
	     memcpy (entdata->host_addr, entdata->host_addr + 12, INADDRSZ);
70
	   else if (IN6_IS_ADDR_LOOPBACK (entdata->host_addr))
71
	     {
72
	       in_addr_t localhost = htonl (INADDR_LOOPBACK);
73
	       memcpy (entdata->host_addr, &localhost, sizeof (localhost));
74
	     }
75
	   else
70
	   else
76
	     /* Illegal address: ignore line.  */
71
	     /* Illegal address: ignore line.  */
77
	     return 0;
72
	     return 0;

Return to bug 4980