summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-03-09 17:47:06 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-03-13 09:07:23 +0100
commit8f4608468b890dce2dad9f91d5607ee7e9c1aba1 (patch)
treea7d0c1a97e26a577753cd48264d8b3da40a833b6 /lib/setopt.c
parent0cbfe32fb1f55dae154cb5fb84c1af97318d2ebe (diff)
downloadcurl-8f4608468b890dce2dad9f91d5607ee7e9c1aba1.tar.gz
ftp: add more conditions for connection reuse
Reported-by: Harry Sintonen Closes #10730
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 20711334b..6bb88791c 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2369,7 +2369,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
arg = va_arg(param, long);
if((arg < CURLUSESSL_NONE) || (arg >= CURLUSESSL_LAST))
return CURLE_BAD_FUNCTION_ARGUMENT;
- data->set.use_ssl = (curl_usessl)arg;
+ data->set.use_ssl = (unsigned char)arg;
break;
case CURLOPT_SSL_OPTIONS: