mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:47:34 +03:00
ssh-libssh: fix infinite connect loop on invalid private key
Added test 656 (based on test 604) to verify the fix. Bug: https://bugzilla.redhat.com/1595135 Closes #2879
This commit is contained in:
parent
1e843a31a4
commit
a4c7911a48
3 changed files with 35 additions and 1 deletions
|
|
@ -663,6 +663,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
if(rc != SSH_OK) {
|
||||
failf(data, "Could not load private key file %s",
|
||||
data->set.str[STRING_SSH_PRIVATE_KEY]);
|
||||
MOVE_TO_ERROR_STATE(CURLE_LOGIN_DENIED);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue