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/urldata.h | |
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/urldata.h')
-rw-r--r-- | lib/urldata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 02a034217..0d03cf11c 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1792,7 +1792,7 @@ struct UserDefined { BIT(get_filetime); /* get the time and get of the remote file */ BIT(tunnel_thru_httpproxy); /* use CONNECT through a HTTP proxy */ BIT(prefer_ascii); /* ASCII rather than binary */ - BIT(ftp_append); /* append, not overwrite, on upload */ + BIT(remote_append); /* append, not overwrite, on upload */ BIT(ftp_list_only); /* switch FTP command for listing directories */ #ifndef CURL_DISABLE_FTP BIT(ftp_use_port); /* use the FTP PORT command */ |