]> granicus.if.org Git - curl/commitdiff
setopt: fix CURLOPT_SSH_AUTH_TYPES option read
authorDaniel Stenberg <daniel@haxx.se>
Fri, 27 Oct 2017 20:56:33 +0000 (22:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 27 Oct 2017 20:57:51 +0000 (22:57 +0200)
Regression since f121575c0b5f

Reported-by: Rob Cotrone
lib/url.c

index f7938094556f067d5fc82ca6c9231acea3d0217b..03ee0855ac243394432658805e90ecf261a36805 100644 (file)
--- 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: