Skip to content

Conversation

@hilbix
Copy link
Contributor

@hilbix hilbix commented Oct 29, 2023

If header.Version != otherHeader.Version then otherHeader.rawTLVs is not present.

This resulted in a crash at my side. Switching position of the 2 ifs solves it.

If header.Version != otherHeader.Version then otherHeader.rawTLVs
is not present.
@pires
Copy link
Owner

pires commented Nov 9, 2023

Thank you for contributing.

Can you, please, add a test that covers for your scenario, ie that triggers the panic?

@coveralls
Copy link

Coverage Status

coverage: 95.017%. remained the same
when pulling 7095f70 on hilbix:tino
into e5b291b on pires:main.

@pires pires added the bug label Oct 8, 2024
@pires pires merged commit 9814f02 into pires:main Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants