From 3edd9b4dfce900fb80918c056553c2cfde10b6e1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 29 Oct 2001 07:49:57 +0000 Subject: [PATCH] SM's waitconnect return code fix! --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3