cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Typo fix in trynextip().

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Sun, 27 Oct 2013 12:27:52 +0100

---
 lib/connect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/connect.c b/lib/connect.c
index 4bf0232..93b2135 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -573,7 +573,7 @@ static CURLcode trynextip(struct connectdata *conn,
 
     do {
       ai = ai->ai_next;
-    } while(ai && ai->ai_family == family);
+    } while(ai && ai->ai_family != family);
   }
   Curl_closesocket(conn, fd_to_close);
   return CURLE_COULDNT_CONNECT;
-- 
1.7.10.4
--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
--tKW2IUtsqtDRztdT--
Received on 2001-09-17