Don't rely on h_addr being non-NULL after gethostbyname.