Fix proxy usage when SSL is disabled
Thanks to "Dr. Guildo" for the report.
--- a/mcabber/connwrap/connwrap.c Wed Jul 04 18:08:35 2007 +0200
+++ b/mcabber/connwrap/connwrap.c Sun Aug 12 16:19:52 2007 +0200
@@ -498,7 +498,7 @@
}
#endif
if ( !(*state & CW_CONNECT_WANT_SOMETHING)) {
- rc = connect(sockfd, serv_addr, addrlen);
+ rc = cw_connect(sockfd, serv_addr, addrlen, 0);
} else { /* check if the socket is connected correctly */
int optlen = sizeof(int), optval;
if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval,