Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zero out all fields of addrinfo hints
getaddrinfo(3) explicitly says these fields have to be zero: > All the other fields in the structure pointed to by hints > must contain either 0 or a null pointer, as appropriate. FreeBSD will fail with EAI_BADHINTS as hints contain garbage: https://github.com/freebsd/freebsd/blob/29cbcfe994c6984bf993b7587b429668ce5073a8/lib/libc/net/getaddrinfo.c#L429-L431
- Loading branch information