Skip to content
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

Catch messages with missing additional sections #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marc-vanderwal
Copy link

I noticed that a query whose additional section count is non-zero in the header, but with that section completely missing, was not rejected as being truncated. This PR fixes this issue.

I’ve added a unit test to that effect.

The code failed to report messages whose additional sections were
completely missing as truncated. Moving and rewriting one clause in
decode_message_body/4 is enough to fix the issue.
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.

1 participant