]> granicus.if.org Git - curl/commitdiff
connect: singleipconnect(): properly try other address families after failure
authorPatrick Monnerat <pm@datasphere.ch>
Mon, 15 Dec 2014 15:36:57 +0000 (16:36 +0100)
committerPatrick Monnerat <pm@datasphere.ch>
Tue, 16 Dec 2014 12:52:06 +0000 (13:52 +0100)
lib/connect.c

index b3a96ce83c9f470702653f0c1222c3357efb9ab5..203345b929e1e174578caddaf78f0b68c3bc6e4f 100644 (file)
@@ -1049,7 +1049,7 @@ static CURLcode singleipconnect(struct connectdata *conn,
       if(result == CURLE_UNSUPPORTED_PROTOCOL) {
         /* The address family is not supported on this interface.
            We can continue trying addresses */
-        return CURLE_OK;
+        return CURLE_COULDNT_CONNECT;
       }
       return result;
     }