init_socket_stuff was ignoring inet_pton's return value causing
invalid IPs being seen as valid which caused bad calls to bind and
listen further in the code path.
Invalid binds were frequents for interfaces providing only one IP
protocol version (IPv4 or v6). In those cases, gIF_IPV4 or gIF_IPV4
were left to their default values (an empty string) causing inet_pton
to fail silently without aborting the socket opening and binding...
init_socket_stuff
was ignoringinet_pton
's return value causing invalid IPs being seen as valid which caused bad calls tobind
andlisten
further in the code path.Invalid
bind
s were frequents for interfaces providing only one IP protocol version (IPv4 or v6). In those cases,gIF_IPV4
orgIF_IPV4
were left to their default values (an empty string) causinginet_pton
to fail silently without aborting the socket opening and binding...Refs #195