Commit a60135f259 for frr
commit a60135f25970868d2ddb36cb6402cd43f357c1e5
Author: Floatato <2264667392@qq.com>
Date: Tue Dec 1 10:48:32 2026 +0800
ospfd: handle a rejected remote-ASBR vertex in Inter-AS TE
ospf_te_update_remote_asbr() builds a TED vertex for the remote ASBR
address carried by an Inter-AS TE Opaque LSA. ls_vertex_add() rejects a
zero key, which is what a zero remote address produces, and returns
NULL without storing the new node. The caller still read vertex->node.
Drop that node and return. The edge parsed before this update is left
in place; only the remote-ASBR vertex is skipped.
Signed-off-by: Floatato <2264667392@qq.com>
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index de9b2f84b1..487e6c1dc3 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -2067,6 +2067,10 @@ static void ospf_te_update_remote_asbr(struct ls_ted *ted, struct ls_edge *edge)
snprintfrr(lnode->name, MAX_NAME_LENGTH, "%pI4",
&lnid.id.ip.addr);
vertex = ls_vertex_add(ted, lnode);
+ if (!vertex) {
+ ls_node_del(lnode);
+ return;
+ }
}
/* Update Node information */