fix read past end of buffer in getaddrinfo backend