Fix broken getaddrinfo call