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

pimd,pim6d: optimize multicast prefix generation and fix coverity scan defect #17642

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

rzalamena
Copy link
Member

Fix Coverity Scan CID 1602463: make it impossible for the function to fail.

Hardcode the multicast prefix generation instead of calling str2prefix() which caused unnecessary memory allocations and returned error values.

@frrbot frrbot bot added the pim label Dec 13, 2024
@rzalamena rzalamena force-pushed the pim-cs branch 5 times, most recently from e26a98b to 586d086 Compare December 13, 2024 10:49
Fix Coverity Scan CID 1602463: make it impossible for the function to fail.

Hardcode the multicast prefix generation instead of calling `str2prefix()`
which caused unnecessary memory allocations and returned error values.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
@Jafaral Jafaral merged commit 27b01ce into FRRouting:master Dec 13, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants