Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
miniserver: Don't initialize sockets for invalid IPs
`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 `bind`s 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... Refs pupnp#195 (cherry picked from commit 447de4e)
- Loading branch information