]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: fix return code for EAGAIN
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Oct 2025 09:03:35 +0000 (11:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Oct 2025 21:12:53 +0000 (23:12 +0200)
In disconnect

Closes #18874

lib/vssh/libssh2.c

index 8ad263e7f3e99b67cd4ee8ee8e4399898291a771..9f6fb8354a31c9b593fe3e99c9732e66f2f91230 100644 (file)
@@ -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;