1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Socket must be set to CURL_SOCKET_BAD after closing it.

This commit is contained in:
Yang Tse 2006-07-11 00:23:21 +00:00
parent 34f5e8ad0e
commit dcc7900e7c

View File

@ -509,6 +509,7 @@ static bool trynextip(struct connectdata *conn,
/* first close the failed socket */
sclose(conn->sock[sockindex]);
conn->sock[sockindex] = CURL_SOCKET_BAD;
/* try the next address */
ai = conn->ip_addr->ai_next;