aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-29 07:49:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-29 07:49:57 +0000
commit3edd9b4dfce900fb80918c056553c2cfde10b6e1 (patch)
treed8d9ec7f3a79ba18be3839028822df6bf6203828
parent1a8cf79ae0b7f96834bcd5348da657d47da7fef5 (diff)
SM's waitconnect return code fix!
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
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;