trynextip: don't store 'ai' on failed connects...
It leads to the "next family" tries starting from the wrong point and thus fails! Bug: http://curl.haxx.se/bug/view.cgi?id=1337 Reported-by: ricker
This commit is contained in:
parent
ec0079a99d
commit
930b81387b
@ -570,11 +570,11 @@ static CURLcode trynextip(struct connectdata *conn,
|
|||||||
|
|
||||||
if(ai) {
|
if(ai) {
|
||||||
rc = singleipconnect(conn, ai, &conn->tempsock[tempindex]);
|
rc = singleipconnect(conn, ai, &conn->tempsock[tempindex]);
|
||||||
conn->tempaddr[tempindex] = ai;
|
|
||||||
if(rc == CURLE_COULDNT_CONNECT) {
|
if(rc == CURLE_COULDNT_CONNECT) {
|
||||||
ai = ai->ai_next;
|
ai = ai->ai_next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
conn->tempaddr[tempindex] = ai;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user