Fix a bug in the checking of the return value of inet_aton