← Commit list

b06cd929bd

Stefan Eissing
Stefan Eissing
2025-11-28
SUCCESS Duration: 157s

Subject

libssh: fix state machine loop to progress as it should

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vssh/libssh.c+3 -1
@@ -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