connect: singleipconnect(): properly try other address families after failure

This commit is contained in:
Patrick Monnerat 2014-12-15 16:36:57 +01:00
parent 1befebc950
commit 759d049ae8

View File

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