mirror of
https://github.com/curl/curl.git
synced 2026-06-04 12:54:15 +03:00
url: remove arg value check from CURLOPT_SSH_AUTH_TYPES
Since CURLSSH_AUTH_ANY (aka CURLSSH_AUTH_DEFAULT) is ~0 an arg value check on this option is incorrect; we have to accept any value. Prior to this change sincef121575(7.56.1+) CURLOPT_SSH_AUTH_TYPES erroneously rejected CURLSSH_AUTH_ANY with CURLE_BAD_FUNCTION_ARGUMENT. Bug:f121575 (commitcomment-25347120)
This commit is contained in:
parent
685ef13057
commit
462f3cac34
1 changed files with 1 additions and 4 deletions
|
|
@ -2710,10 +2710,7 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option,
|
|||
#ifdef USE_LIBSSH2
|
||||
/* we only include SSH options if explicitly built to support SSH */
|
||||
case CURLOPT_SSH_AUTH_TYPES:
|
||||
arg = va_arg(param, long);
|
||||
if(arg < CURLSSH_AUTH_NONE)
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
data->set.ssh_auth_types = arg;
|
||||
data->set.ssh_auth_types = va_arg(param, long);
|
||||
break;
|
||||
|
||||
case CURLOPT_SSH_PUBLIC_KEYFILE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue