summaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-11-11 10:57:04 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-11 15:56:05 +0100
commitbf12c2bed692a1cc62b8a3a76eb61e15d50cc74f (patch)
tree7ef05ab4afd3faac00c504ae6680562d3b5e4d4c /lib/pop3.c
parentdafdb20a26d0c890e83dea61a104b75408481ebd (diff)
downloadcurl-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/pop3.c')
-rw-r--r--lib/pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index 48f589bce..b6ba0ea1a 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -956,7 +956,7 @@ static CURLcode pop3_state_command_resp(struct Curl_easy *data,
content so send it as such. Note that there may even be additional
"headers" after the body */
- if(!data->set.opt_no_body) {
+ if(!data->req.no_body) {
result = Curl_pop3_write(data, pp->cache, pp->cache_size);
if(result)
return result;
@@ -1204,7 +1204,7 @@ static CURLcode pop3_perform(struct Curl_easy *data, bool *connected,
DEBUGF(infof(data, "DO phase starts"));
- if(data->set.opt_no_body) {
+ if(data->req.no_body) {
/* Requested no body means no transfer */
pop3->transfer = PPTRANSFER_INFO;
}