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
1 changed files with 1 additions and 1 deletions

View File

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