]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: fix EAGAIN return in ssh_state_auth_agent
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Oct 2025 07:36:08 +0000 (09:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Oct 2025 08:46:42 +0000 (10:46 +0200)
Reported-by: Joshua Rogers
Closes #19042

lib/vssh/libssh2.c

index ad416aba8e0009ad356d0b13d62610ff1dfcba19..dfdb8526d610a5ccd47707329c79b847b35321b0 100644 (file)
@@ -1850,8 +1850,9 @@ static CURLcode ssh_state_auth_agent(struct Curl_easy *data,
       if(rc != LIBSSH2_ERROR_EAGAIN) {
         /* tried and failed? go to next identity */
         sshc->sshagent_prev_identity = sshc->sshagent_identity;
+        return CURLE_OK;
       }
-      return CURLE_OK;
+      return CURLE_AGAIN;
     }
   }