From: Daniel Stenberg Date: Mon, 29 Oct 2001 07:49:57 +0000 (+0000) Subject: SM's waitconnect return code fix! X-Git-Tag: curl-7_9_1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3edd9b4dfce900fb80918c056553c2cfde10b6e1;p=thirdparty%2Fcurl.git SM's waitconnect return code fix! --- diff --git a/lib/connect.c b/lib/connect.c index 4adc9f85c7..b952d85e86 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;