diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 16:21:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 22:44:37 +0100 |
commit | 0c51036eb6ddef50a1730bdd33a4388b35343125 (patch) | |
tree | fd8d67514c053d64acd9d1948450129c9ef1e9fe /lib/setopt.c | |
parent | d836d362ec4c1d467ef5df370ae2573cbd1bfd2b (diff) | |
download | curl-0c51036eb6ddef50a1730bdd33a4388b35343125.tar.gz |
ftp: never set data->set.ftp_append outside setopt
Since the set value then risks getting used like that when the easy
handle is reused by the application.
Also: renamed the struct field from 'ftp_append' to 'remote_append'
since it is also used for SSH protocols.
Closes #6579
Diffstat (limited to 'lib/setopt.c')
-rw-r--r-- | lib/setopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index d4a081681..4e0cbc3f8 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -1165,7 +1165,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) * We want to upload and append to an existing file. Used for FTP and * SFTP. */ - data->set.ftp_append = (0 != va_arg(param, long)) ? TRUE : FALSE; + data->set.remote_append = (0 != va_arg(param, long)) ? TRUE : FALSE; break; #ifndef CURL_DISABLE_FTP |