Commit 1ea05be4 authored by Björn Stenberg's avatar Björn Stenberg Committed by Steve Holme
Browse files

url.c: Remove superfluous for loop

The reason for this loop's existence was removed in commit
02fbc26d.
parent c9d8c00a
Loading
Loading
Loading
Loading
+13 −19
Original line number Diff line number Diff line
@@ -5559,9 +5559,6 @@ CURLcode Curl_setup_conn(struct connectdata *conn,
     is later set again for the progress meter purpose */
  conn->now = Curl_tvnow();

  for(;;) {
    /* loop for CURL_SERVER_CLOSED_CONNECTION */

  if(CURL_SOCKET_BAD == conn->sock[FIRSTSOCKET]) {
    conn->bits.tcpconnect[FIRSTSOCKET] = FALSE;
    result = Curl_connecthost(conn, conn->dns_entry);
@@ -5576,9 +5573,6 @@ CURLcode Curl_setup_conn(struct connectdata *conn,
    Curl_updateconninfo(conn, conn->sock[FIRSTSOCKET]);
    Curl_verboseconnect(conn);
  }
    /* Stop the loop now */
    break;
  }

  conn->now = Curl_tvnow(); /* time this *after* the connect is done, we
                               set this here perhaps a second time */