diff --git a/lib/connect.c b/lib/connect.c index 4adc9f85c..b952d85e8 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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;