From: Daniel Stenberg Date: Fri, 27 Oct 2017 20:56:33 +0000 (+0200) Subject: setopt: fix CURLOPT_SSH_AUTH_TYPES option read X-Git-Tag: curl-7_57_0~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=961c8667d228ede745aa5166d7f6f6d7dd3c267c;p=thirdparty%2Fcurl.git setopt: fix CURLOPT_SSH_AUTH_TYPES option read Regression since f121575c0b5f Reported-by: Rob Cotrone --- diff --git a/lib/url.c b/lib/url.c index f793809455..03ee0855ac 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: