fix bogus return values for inet_pton