Commit 23659098 authored by Mike Hibler's avatar Mike Hibler

do not continue if we cannot resolve the hostname

parent 201c6d8c
......@@ -143,7 +143,8 @@ event_register_withkeydata_withretry(char *name, int threaded,
* Testbed Event System.
*/
if (! (he = gethostbyname(hostname))) {
ERROR("could not get IP address from hostname: %s", hostname);
ERROR("could not get IP address from hostname: %s\n", hostname);
return 0;
}
memcpy((char *)&myip, he->h_addr, he->h_length);
strcpy(ipaddr, inet_ntoa(myip));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment