bgp_ls_ted: fix issue of withdrawing edges #21490
+26
−0
Open
frrbot / frrbot
completed
Apr 9, 2026 in 6s
Style and/or linter errors found
Style and/or linter errors found
Details
Thanks for your contribution to FRR!
Click for style suggestions
diff --git a/bgpd/bgp_ls_ted.c b/bgpd/bgp_ls_ted.c
index 9e145d9977..df92f39e38 100644
--- a/bgpd/bgp_ls_ted.c
+++ b/bgpd/bgp_ls_ted.c
@@ -1184,8 +1184,7 @@ int bgp_ls_process_message(struct bgp *bgp, struct ls_message *msg)
case LS_MSG_TYPE_ATTRIBUTES:
if (msg->event == LS_MSG_EVENT_UPDATE) {
struct ls_edge *old_edge;
- old_edge = ls_find_edge_by_source(bgp->ls_info->ted,
- msg->data.attr);
+ old_edge = ls_find_edge_by_source(bgp->ls_info->ted, msg->data.attr);
if (old_edge)
bgp_ls_process_edge(bgp, old_edge, LS_MSG_EVENT_DELETE);
}
To apply the style suggestions:
curl https://gist.githubusercontent.com/polychaeta/754e643f72bd69c8d5f30b1ae0d04b7c/raw/8261d98118b31e8a4ec5a37f095227672c5b204f/style.diff | git apply -
If you are a new contributor to FRR, please see our contributing guidelines.
After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.
Loading