mirror of
https://github.com/curl/curl.git
synced 2026-04-20 01:01:14 +03:00
In the unlikely case that no SSH auth methods are supported, the previous code would return 0 from myssh_in_AUTH_PKEY_INIT. However, following the code path, it seems like it should be returning SSH_ERROR, as set in myssh_to_ERROR (through myssh_to_GSSAPI_AUTH, myssh_to_KEY_AUTH and myssh_to_PASSWD_AUTH). In actuality, this is unlikely to occur, as the similar code in myssh_in_AUTHLIST would have already returned an error in this scenario. However setting a return value and then ignoring it is a bit fishy and should be documented if this is intended. I believe this used to return an error, but was changed in the recent re-factoring of this code. Closes #17691 |
||
|---|---|---|
| .. | ||
| .checksrc | ||
| curl_path.c | ||
| curl_path.h | ||
| libssh.c | ||
| libssh2.c | ||
| ssh.h | ||
| wolfssh.c | ||