For historic reasons, inet_addr and inet_aton accept trailing characters; see bug 20018. We cannot change this behavior, but it risks introducing security vulnerabilities into applications. Applications should use inet_pton or getaddrinfo with AI_NUMERICSHOST instead.