]> git.puffer.fish Git - mirror/frr.git/commit
isisd: Fix memory leaks when the transition of neighbor state from non-UP to DOWN 18639/head
authorzhou-run <166502045+zhou-run@users.noreply.github.com>
Tue, 9 Apr 2024 13:04:39 +0000 (21:04 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 10 Apr 2025 16:41:43 +0000 (16:41 +0000)
commit101b13b7b56028daaaa852bf466ba2846a84eff4
tree922cfae7b44a2690d3acbe8e129470143e562c24
parent84e46f6087bda181d387189792cb380bd212560e
isisd: Fix memory leaks when the transition of neighbor state from non-UP to DOWN

When receiving a hello packet, if the neighbor state transitions directly from a non-ISIS_ADJ_UP state (such as ISIS_ADJ_INITIALIZING) to ISIS_ADJ_DOWN state, the neighbor entry cannot be deleted. If the neighbor is removed or the neighbor's System ID changes, it may result in memory leakage in the neighbor entry.

Test Scenario:
LAN link between Router A and Router B is established. Router A does not configure neighbor authentication, while Router B is configured with neighbor authentication. When the neighbor entry on Router B ages out, the neighbor state on Router A transitions to INIT. If Router B is then removed, the neighbor state on Router A transitions to DOWN and persists.

Signed-off-by: zhou-run <166502045+zhou-run@users.noreply.github.com>
fix frrbot styling issues found.

fix frrbot styling issues found.

Signed-off-by: zhou-run <166502045+zhou-run@users.noreply.github.com>
(cherry picked from commit 5009f7539ad6bf496158499917dcf3f7ab760753)
isisd/isis_adjacency.c