Socket must be set to CURL_SOCKET_BAD after closing it.
This commit is contained in:
@@ -509,6 +509,7 @@ static bool trynextip(struct connectdata *conn,
|
|||||||
|
|
||||||
/* first close the failed socket */
|
/* first close the failed socket */
|
||||||
sclose(conn->sock[sockindex]);
|
sclose(conn->sock[sockindex]);
|
||||||
|
conn->sock[sockindex] = CURL_SOCKET_BAD;
|
||||||
|
|
||||||
/* try the next address */
|
/* try the next address */
|
||||||
ai = conn->ip_addr->ai_next;
|
ai = conn->ip_addr->ai_next;
|
||||||
|
|||||||
Reference in New Issue
Block a user