make sure hints hasn't been mangled before calling getaddrinfo