cares: fix getaddrinfo