Skip to content

request: reset resp_trailer in new requests - #21112

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/resp_trailer
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/resp_trailer

Conversation

@bagder

@bagder bagder commented Mar 27, 2026

Copy link
Copy Markdown
Member

Otherwise the trailer state lingers on into subsequent requests.

Follow-up to 29610e5

Spotted by Codex Security

Otherwise the trailer state lingers on into subsequent requests.

Follow-up to 29610e5

Spotted by Codex Security
@bagder
bagder requested a review from icing March 27, 2026 08:13
@bagder
bagder marked this pull request as ready for review March 27, 2026 08:16

@icing icing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, a minor nit where a missing trailer on a reset easy that had trailers correctly before would be missed. It's about as likely to happen as me getting pregnant. But a bug nevertheless.

I wonder, given that we have always issues with "resetting" easy/request things, if there is a better way to do this.

@bagder

bagder commented Mar 27, 2026

Copy link
Copy Markdown
Member Author

I wonder, given that we have always issues with "resetting" easy/request things, if there is a better way to do this.

Perhaps it could be an idea to have a sub-struct in there that we always memset to zero in new requests. Then they would automatically get reset if we add new members in there...

@bagder bagder closed this in 10d5177 Mar 27, 2026
@bagder
bagder deleted the bagder/resp_trailer branch March 27, 2026 08:51
dkarpov1970 pushed a commit to dkarpov1970/curl that referenced this pull request Apr 7, 2026
Otherwise the trailer state lingers on into subsequent requests.

Follow-up to 29610e5

Spotted by Codex Security

Closes curl#21112
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Otherwise the trailer state lingers on into subsequent requests.

Follow-up to 29610e5

Spotted by Codex Security

Closes curl#21112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants