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

bgpd: Coverity fixes for RPKI per-VRF #15200

Closed
wants to merge 14 commits into from

Conversation

ton31337
Copy link
Member

No description provided.

CID 1575925

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575923

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575922

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575922

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575920

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575919

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575917

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575915

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575914

Signed-off-by: Donatas Abraitis <[email protected]>
CID 1575913

Signed-off-by: Donatas Abraitis <[email protected]>
If vrf_socket fails, need to free resources allocated by vrf_getaddrinfo().

CID 1575912

Signed-off-by: Donatas Abraitis <[email protected]>
setsockopt(socket, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout));
ret = getsockopt(socket, SOL_SOCKET, SO_RCVTIMEO, &prev_rcv_tmout,
&optlen);
if (ret < 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to free res when if (ret < 0)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, that was correct.

@ton31337 ton31337 closed this Jan 23, 2024
@ton31337 ton31337 deleted the fix/rpki_coverity branch January 23, 2024 10:50
@louis-6wind
Copy link
Contributor

louis-6wind commented Jan 23, 2024

The difference between #15200 and #15201 is in the treatment of CID 1575912 fix: see e7f6c63

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