Commit d57e0988 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added a missing failf() before returning an error code

parent eecb86bf
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -783,10 +783,12 @@ Curl_SSLConnect(struct connectdata *conn)
      /* subtract the passed time */
      timeout_ms -= (long)has_passed;
      
      if(timeout_ms < 0)
      if(timeout_ms < 0) {
        /* a precaution, no need to continue if time already is up */
        failf(data, "SSL connection timeout");
        return CURLE_OPERATION_TIMEOUTED;
      }
    }
    else
      /* no particular time-out has been set */
      timeout_ms=300000; /* milliseconds, default to five minutes */