return the requested string as the "canonical name" for numeric addresses
authorRich Felker <dalias@aerifal.cx>
Fri, 8 Apr 2011 12:14:28 +0000 (08:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 8 Apr 2011 12:14:28 +0000 (08:14 -0400)
commite2cc0bee118d7a282bdce0b71db433def3022fb6
treea639415206c52ca1dcbe9eca03bc3c610bce026b
parentd4fbebe18d2d063069b1505d357a1ff3b5ca0ab8
return the requested string as the "canonical name" for numeric addresses

previously NULL was returned in ai_canonname, resulting in crashes in
some callers. this behavior was incorrect. note however that the new
behavior differs from glibc, which performs reverse dns lookups. POSIX
is very clear that a reverse DNS lookup must not be performed for
numeric addresses.
src/network/getaddrinfo.c