libssh2: fix EAGAIN return in ssh_state_auth_agent

Reported-by: Joshua Rogers
Closes #19042
This commit is contained in:
Daniel Stenberg 2025-10-13 09:36:08 +02:00
parent e003c0b259
commit dee72fe31e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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;
}
}