]> granicus.if.org Git - curl/commitdiff
SM's waitconnect return code fix!
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Oct 2001 07:49:57 +0000 (07:49 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Oct 2001 07:49:57 +0000 (07:49 +0000)
lib/connect.c

index 4adc9f85c7c1372592e741a3fd58ec60161dd806..b952d85e86e8e9ee08c94c8c411782b58a8bd11b 100644 (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;