Use correct error string for getaddrinfo() and getnameinfo() failures.