X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=jbsockets.c;h=5e4b28c739efb4e9d7a968e61ebf92ba3f49f2a5;hp=16b2a90183f55649377ee46a6ae61d45c4026fe8;hb=9969b0d688c6730348572c9aff2254bd55ec94e0;hpb=767afb7f5d7062d75385b9ab3afdad47d0249a39 diff --git a/jbsockets.c b/jbsockets.c index 16b2a901..5e4b28c7 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -218,7 +218,7 @@ static jb_socket rfc2553_connect_to(const char *host, int portnum, struct client #endif int connect_failed; /* - * XXX: Initializeing it here is only necessary + * XXX: Initializing it here is only necessary * because not all situations are properly * covered yet. */ @@ -254,10 +254,10 @@ static jb_socket rfc2553_connect_to(const char *host, int portnum, struct client { 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); } @@ -1323,7 +1323,7 @@ int accept_connection(struct client_state * csp, jb_socket fds[]) #endif jb_socket afd; #if defined(_WIN32) || defined(__OS2__) - /* Wierdness - fix a warning. */ + /* Weirdness - fix a warning. */ int c_length; #else socklen_t c_length;