1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

setopt: fix CURLOPT_SSH_AUTH_TYPES option read

Regression since f121575c0b

Reported-by: Rob Cotrone
This commit is contained in:
Daniel Stenberg 2017-10-27 22:56:33 +02:00
parent 733190413f
commit 961c8667d2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2711,7 +2711,7 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option,
arg = va_arg(param, long);
if(arg < CURLSSH_AUTH_NONE)
return CURLE_BAD_FUNCTION_ARGUMENT;
data->set.ssh_auth_types = va_arg(param, long);
data->set.ssh_auth_types = arg;
break;
case CURLOPT_SSH_PUBLIC_KEYFILE: