|
@@ -670,13 +670,14 @@ int open_telnet_raw(int sock, char *server, port_t sport)
|
|
|
int rc = connect(sock, &so.sa, SIZEOF_SOCKADDR(so));
|
|
int rc = connect(sock, &so.sa, SIZEOF_SOCKADDR(so));
|
|
|
|
|
|
|
|
if (rc < 0) {
|
|
if (rc < 0) {
|
|
|
- sdprintf("connect(%s) failed: %s", server, strerror(errno));
|
|
|
|
|
if (errno == EINPROGRESS) {
|
|
if (errno == EINPROGRESS) {
|
|
|
/* Firewall? announce connect attempt to proxy */
|
|
/* Firewall? announce connect attempt to proxy */
|
|
|
if (firewall[0])
|
|
if (firewall[0])
|
|
|
return proxy_connect(sock, server, sport, proxy);
|
|
return proxy_connect(sock, server, sport, proxy);
|
|
|
return sock; /* async success! */
|
|
return sock; /* async success! */
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ sdprintf("connect(%s) failed: %s", server, strerror(errno));
|
|
|
|
|
+
|
|
|
killsock(sock);
|
|
killsock(sock);
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|