diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-01-06 00:19:17 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-01-06 00:19:17 +0100 |
commit | 53014175e8dce8bc1ea6fbe00f1da886767d7587 (patch) | |
tree | 108a511e989be93c9f9176e47a81527e4243c289 /lib/ssh.c | |
parent | 651c0bcdf27c484ebd6d637947157424aaa46ab7 (diff) |
SSH: speedcheck clobbered existing error
The just added speedcheck must not ruin the error code if already set
due to a problem.
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2453,6 +2453,8 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn, long left; result = ssh_statemach_act(conn, &block); + if(result) + break; if(Curl_pgrsUpdate(conn)) return CURLE_ABORTED_BY_CALLBACK; @@ -2460,7 +2462,7 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn, struct timeval now = Curl_tvnow(); result = Curl_speedcheck(data, now); if(result) - return result; + break; } left = Curl_timeleft(data, NULL, duringconnect); |