Message-Id: <
B8283EBD.8414%Robert.Dalgleish@sk.sympatico.ca>
Craig Berry submitted half of this patch just yesterday.
Spooky cosmic resonance.
p4raw-id: //depot/perl@13291
{
struct in_addr ip_address;
struct hostent * phe;
- int ok = inet_aton(host, &ip_address);
+ int ok =
+ (host != NULL) &&
+ (*host != '\0') &&
+ inet_aton(host, &ip_address);
if (!ok && (phe = gethostbyname(host))) {
Copy( phe->h_addr, &ip_address, phe->h_length, char );