... to reduce the chances that it gets cloberred before
the caller has a chance to read it.
Previously Privoxy could send a "Connection failure" message
instead of the "DNS failure" message.
Sponsored by: Robert Klemme
{
log_error(LOG_LEVEL_INFO,
"Can not resolve %s: %s", host, gai_strerror(retval));
- /* XXX: Should find a better way to propagate this error. */
- errno = EINVAL;
csp->error_message = strdup(gai_strerror(retval));
csp->http->host_ip_addr_str = strdup("unknown");
+ /* XXX: Should find a better way to propagate this error. */
+ errno = EINVAL;
return(JB_INVALID_SOCKET);
}