SSH: speedcheck clobbered existing error
The just added speedcheck must not ruin the error code if already set due to a problem.
This commit is contained in:
parent
651c0bcdf2
commit
53014175e8
@ -2453,6 +2453,8 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn,
|
|||||||
long left;
|
long left;
|
||||||
|
|
||||||
result = ssh_statemach_act(conn, &block);
|
result = ssh_statemach_act(conn, &block);
|
||||||
|
if(result)
|
||||||
|
break;
|
||||||
|
|
||||||
if(Curl_pgrsUpdate(conn))
|
if(Curl_pgrsUpdate(conn))
|
||||||
return CURLE_ABORTED_BY_CALLBACK;
|
return CURLE_ABORTED_BY_CALLBACK;
|
||||||
@ -2460,7 +2462,7 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn,
|
|||||||
struct timeval now = Curl_tvnow();
|
struct timeval now = Curl_tvnow();
|
||||||
result = Curl_speedcheck(data, now);
|
result = Curl_speedcheck(data, now);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
left = Curl_timeleft(data, NULL, duringconnect);
|
left = Curl_timeleft(data, NULL, duringconnect);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user