"*connected" must be set to FALSE if trynextip() fails.
This commit is contained in:
parent
06d05b18b2
commit
ef82da93fb
@ -504,12 +504,13 @@ static bool trynextip(struct connectdata *conn,
|
|||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
Curl_addrinfo *ai;
|
Curl_addrinfo *ai;
|
||||||
|
|
||||||
if(sockindex != FIRSTSOCKET)
|
|
||||||
return TRUE; /* no next */
|
|
||||||
|
|
||||||
/* first close the failed socket */
|
/* first close the failed socket */
|
||||||
sclose(conn->sock[sockindex]);
|
sclose(conn->sock[sockindex]);
|
||||||
conn->sock[sockindex] = CURL_SOCKET_BAD;
|
conn->sock[sockindex] = CURL_SOCKET_BAD;
|
||||||
|
*connected = FALSE;
|
||||||
|
|
||||||
|
if(sockindex != FIRSTSOCKET)
|
||||||
|
return TRUE; /* no next */
|
||||||
|
|
||||||
/* try the next address */
|
/* try the next address */
|
||||||
ai = conn->ip_addr->ai_next;
|
ai = conn->ip_addr->ai_next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user