-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 a possible crash issue (code review) #14127
Conversation
The variable 'adj' used in this loop is not assigned a new value within the loop, instead it keeps using the same 'adj' assigned earlier, which may cause an exception in the second iteration of the loop. Signed-off-by: Jack.zhang <[email protected]>
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-13240/ This is a comment from an automated CI system. |
This is the same issue #13625. |
@donaldsharp had some insightful comments regarding this behavior on how adj can be NULL (in what cases). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
A better approach seems to be moving the route to the withdraw queue when a larger attribute is discovered. Otherwise, if the route was previously sent with a smaller attribute, it cannot be properly updated to other neighbors, and a better way to handle it may be to withdraw the route from the neighbors.(?) Will close this PR and track it in PR #13625 |
The variable 'adj' used in this loop is not assigned a new value within the loop, instead it keeps using the same 'adj' assigned earlier, which may cause an exception in the second iteration of the loop.