A bogus IP was printed to the console while I was troubleshooting connectivity.
inet_ntoa_r requires a valid IP address in order to format a string.
A pointer was instead given to the sockaddr_in struct,
which contains the family and port at the beginning, not the address.
A bogus IP was printed to the console while I was troubleshooting connectivity.
inet_ntoa_r
requires a valid IP address in order to format a string. A pointer was instead given to thesockaddr_in
struct, which contains the family and port at the beginning, not the address.The IPv6 portion of this fix is untested.