git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97199
13f79535-47bb-0310-9956-
ffa450edef68
hep = gethostbyname(w);
if ((!hep) || (hep->h_addrtype != AF_INET || !hep->h_addr_list[0])) {
+ /* XXX Should be echoing by r_errno the actual failure, no?
+ * ap_log_error would be good here.
+ */
fprintf(stderr, "Cannot resolve host name %s --- exiting!\n", w);
exit(1);
}
else
{
str[sizeof(str) - 1] = '\0';
+ /* TODO: Screaming for APR-ization */
if ((!(p = gethostbyname(str)))
|| (!(server_hostname = find_fqdn(a, p)))) {
/* Recovery - return the default servername by IP: */