From: Daniel Stenberg Date: Mon, 6 Oct 2025 09:03:35 +0000 (+0200) Subject: libssh2: fix return code for EAGAIN X-Git-Tag: rc-8_17_0-1~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5090cce01c259ec6d01d907f71be9c27ac960f91;p=thirdparty%2Fcurl.git libssh2: fix return code for EAGAIN In disconnect Closes #18874 --- diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 8ad263e7f3..9f6fb8354a 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -2574,7 +2574,7 @@ static CURLcode ssh_state_session_disconnect(struct Curl_easy *data, if(sshc->ssh_channel) { rc = libssh2_channel_free(sshc->ssh_channel); if(rc == LIBSSH2_ERROR_EAGAIN) - return CURLE_OK; + return CURLE_AGAIN; if(rc < 0) { char *err_msg = NULL;