Fix wrong usage of inet_pton.