]> git.puffer.fish Git - mirror/frr.git/commit
isisd: Correct edge insertion into TED 18299/head
authorOlivier Dugeon <olivier.dugeon@orange.com>
Mon, 3 Mar 2025 09:08:17 +0000 (10:08 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 3 Mar 2025 12:40:32 +0000 (12:40 +0000)
commit4e50885f61b2dbb8ba37e4b692d7cc6467aa25ae
tree19da2adcf64403debfe31a10019452e50f1513b6
parent53c938b11cf9ef283c9a66db49b0bab8e6b1ef40
isisd: Correct edge insertion into TED

Edges are not correctly linked to Vertices during LSP processing. In function
lsp_to_edge_cb(), once edge created or updated from the LSP TLVs, the code try
to link the edge to destination vertices. In case the revert edge is not found,
the code try to found a destination vertex to link to. But, the sys_id used
for this operation corresponds to the source vertex. As a result, the edge is
attached as source and destination of the vertex. When Traffic Engineering is
stopped, TED is deleted which result into a double free of the edge attributes.
This cause a crash when attempt to free extended admin groupi the second time.

This patch removed wrong code which link twice the edge to the source vertex.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
(cherry picked from commit 605fc1dd6404b6ed51691c647568939adde4962a)
isisd/isis_te.c