diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-11-11 10:57:04 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-11-11 15:56:05 +0100 |
commit | bf12c2bed692a1cc62b8a3a76eb61e15d50cc74f (patch) | |
tree | 7ef05ab4afd3faac00c504ae6680562d3b5e4d4c /lib/vssh | |
parent | dafdb20a26d0c890e83dea61a104b75408481ebd (diff) | |
download | curl-bf12c2bed692a1cc62b8a3a76eb61e15d50cc74f.tar.gz |
lib: remove bad set.opt_no_body assignments
This struct field MUST remain what the application set it to, so that
handle reuse and handle duplication work.
Instead, the request state bit 'no_body' is introduced for code flows
that need to change this in run-time.
Closes #9888
Diffstat (limited to 'lib/vssh')
-rw-r--r-- | lib/vssh/libssh.c | 2 | ||||
-rw-r--r-- | lib/vssh/libssh2.c | 2 | ||||
-rw-r--r-- | lib/vssh/wolfssh.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index e4e6a66c3..df6444168 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -1416,7 +1416,7 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data, bool *block) case SSH_SFTP_READDIR_INIT: Curl_pgrsSetDownloadSize(data, -1); - if(data->set.opt_no_body) { + if(data->req.no_body) { state(data, SSH_STOP); break; } diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 8dc230b59..2211213e3 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -2251,7 +2251,7 @@ static CURLcode ssh_statemach_act(struct Curl_easy *data, bool *block) case SSH_SFTP_READDIR_INIT: Curl_pgrsSetDownloadSize(data, -1); - if(data->set.opt_no_body) { + if(data->req.no_body) { state(data, SSH_STOP); break; } diff --git a/lib/vssh/wolfssh.c b/lib/vssh/wolfssh.c index 84aecf625..25e3112d0 100644 --- a/lib/vssh/wolfssh.c +++ b/lib/vssh/wolfssh.c @@ -837,7 +837,7 @@ static CURLcode wssh_statemach_act(struct Curl_easy *data, bool *block) case SSH_SFTP_READDIR_INIT: Curl_pgrsSetDownloadSize(data, -1); - if(data->set.opt_no_body) { + if(data->req.no_body) { state(data, SSH_STOP); break; } |