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

header.go prevent otherHeader.rawTLVs being nil #104

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

Conversation

hilbix
Copy link

@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.

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.

None yet

3 participants