Commit dcc7900e authored by Yang Tse's avatar Yang Tse
Browse files

Socket must be set to CURL_SOCKET_BAD after closing it.

parent 34f5e8ad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;