1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

SM's waitconnect return code fix!

This commit is contained in:
Daniel Stenberg 2001-10-29 07:49:57 +00:00
parent 1a8cf79ae0
commit 3edd9b4dfc

View File

@ -538,7 +538,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
} }
break; break;
} }
if(-1 == rc) { if(0 != rc) {
/* no good connect was made */ /* no good connect was made */
sclose(sockfd); sclose(sockfd);
*sockconn = -1; *sockconn = -1;