On Sat, Oct 13, 2018 at 08:29:34PM +0200, Klemens Nanni wrote:
> After calling getaddrinfo(3) we check the size of the returned socket
> address to match for AF-specific cases, but I fail to see how this is
> even possible.
>
> `hints.ai_family' is set appropiately and `res->ai_family' is checked,
After calling getaddrinfo(3) we check the size of the returned socket
address to match for AF-specific cases, but I fail to see how this is
even possible.
`hints.ai_family' is set appropiately and `res->ai_family' is checked,
so `res->ai_addrlen' is guaranteed to be correct.
It seems like this is