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: fix labels static-analyser (backport #16655) #16671

Conversation

ton31337
Copy link
Member

Fix static-analyser warnings with BGP labels:

$ scan-build make -j12
bgpd/bgp_updgrp_packet.c:819:10: warning: Access to field 'extra' results in a dereference of a null pointer (loaded from variable 'path') [core.NullDereference]
? &path->extra->labels->label[0]
^~~~~~~~~

Fix static-analyser warnings with BGP labels:

> $ scan-build make -j12
> bgpd/bgp_updgrp_packet.c:819:10: warning: Access to field 'extra' results in a dereference of a null pointer (loaded from variable 'path') [core.NullDereference]
>                                                 ? &path->extra->labels->label[0]
>                                                    ^~~~~~~~~

Signed-off-by: Louis Scalbert <[email protected]>
@Jafaral Jafaral changed the title bgpd: fix labels static-analyser bgpd: fix labels static-analyser (backport #16655) Aug 27, 2024
@Jafaral Jafaral merged commit 0bad64e into FRRouting:stable/10.1 Aug 27, 2024
16 checks passed
@ton31337 ton31337 deleted the fix/a152692f5ac207b5f55104b18ddc3146089db474_10.1 branch August 28, 2024 18:26
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.

3 participants