mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:51:41 +03:00
libssh: fix state machine loop to progress as it should
This commit is contained in:
parent
12a3182fc3
commit
b06cd929bd
1 changed files with 3 additions and 1 deletions
|
|
@ -2408,7 +2408,9 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data,
|
|||
break;
|
||||
|
||||
}
|
||||
} while(!rc && (sshc->state != SSH_STOP));
|
||||
/* break the loop only on STOP or SSH_AGAIN. If `rc` is some
|
||||
* other error code, we will have progressed the state accordingly. */
|
||||
} while((rc != SSH_AGAIN) && (sshc->state != SSH_STOP));
|
||||
|
||||
if(rc == SSH_AGAIN) {
|
||||
/* we would block, we need to wait for the socket to be ready (in the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue