Commit Graph

1 Commits (86666298d70fb34fc6e383e1aa15e4ae1f4d4836)

Author SHA1 Message Date
Felix Fietkau 5987213ee8 Fix ipv4/ipv6 resolving.
When not using AF_INET, gethostbyname2_r tries to resolve an ipv6 address
from /etc/hosts using __get_hosts_byname_r, but with AF_INET instead of the
supplied address family. This returns ipv4 addresses marked as ipv6 ones.



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-01-27 15:13:06 +00:00