Use INADDR_NONE instead of -1 to check inet_addr() result