summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index f79380945..03ee0855a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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: