make getaddrinfo with AF_UNSPEC and null host return both IPv4 and v6
authorRich Felker <dalias@aerifal.cx>
Wed, 24 Jul 2013 20:49:17 +0000 (16:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 24 Jul 2013 20:49:17 +0000 (16:49 -0400)
commitf5dfb45f78872b2574b911af2e0a372c1dac1590
tree8f50d785c0ede8441412f1bd2e110adf46cdc79e
parente152ee9778846c1f233641b2d3562ccdb081c6a9
make getaddrinfo with AF_UNSPEC and null host return both IPv4 and v6

based on a patch by orc, with indexing and flow control cleaned up a
little bit. this code is all going to be replaced at some point in the
near future.
src/network/getaddrinfo.c