ladybird/Userland/Libraries/LibC/arpa
Tim Schumacher d7797c8bf8 Userland: Treat inet_pton returning 0 as an error
The POSIX man-page states that inet_pton returns 0 if the input is not a
valid IPv4 dotted-decimal string or a valid IPv6 address string. This is
also how it is implemented in SerenityOS.

This means that we should treat a return value of 0 as an error to avoid
using an invalid address (or 0.0.0.0).
2021-05-27 22:56:21 +02:00
..
inet.cpp Userland: Treat inet_pton returning 0 as an error 2021-05-27 22:56:21 +02:00
inet.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00