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
1 changed files with 1 additions and 1 deletions

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: