Skip to content

protoc-gen-grpc-gateway: guard against nil on drain #5668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

johanbrandhorst
Copy link
Collaborator

When draining the request body, first ensure the body is not nil, otherwise this can cause a nil pointer panic.

Fixes #5667

When draining the request body, first ensure the body is not nil,
otherwise this can cause a nil pointer panic.
@johanbrandhorst johanbrandhorst enabled auto-merge (squash) June 17, 2025 22:28
@johanbrandhorst johanbrandhorst merged commit a8a7bb0 into main Jun 17, 2025
14 checks passed
@johanbrandhorst johanbrandhorst deleted the fix-panic-on-drain branch June 17, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic from request drain in v2.26.2
1 participant