diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 16:21:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 16:21:31 +0100 |
commit | 875966fc28e9bdc5e976e626fade8b0cb6e66573 (patch) | |
tree | 9df1e3918dea441aee44cecf53a79b533a1f80f7 /lib/vssh/libssh.c | |
parent | c30bf22f1c1b2d5043517845204d53d6752db0fe (diff) | |
download | curl-bagder/ftp-append.tar.gz |
ftp: never set data->set.ftp_append outside setoptbagder/ftp-append
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.
Diffstat (limited to 'lib/vssh/libssh.c')
-rw-r--r-- | lib/vssh/libssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 08896ab5b..dfdef12af 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -1224,7 +1224,7 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data, bool *block) } } - if(data->set.ftp_append) + if(data->set.remote_append) /* Try to open for append, but create if nonexisting */ flags = O_WRONLY|O_CREAT|O_APPEND; else if(data->state.resume_from > 0) |