Commit 3f33ca0377 for frr

commit 3f33ca0377088b03bf00d6c9836e50ba3874eab4
Author: Floatato <2264667392@qq.com>
Date:   Thu Dec 3 00:23:56 2026 +0800

    isisd: skip an LFA parent that has no adjacency node

    vertex_is_affected() looks up each non-root SPF parent in the LFA
    adjacency set and asserts that both the node and its SPF tree exist.
    An SPF parent is not always a member of that set, so TI-LFA aborts
    isisd.

    A missing parent is affected when its id is the protected resource.
    Compare the full LAN id, or the system id of a point-to-point
    neighbor. A neighbor without an LFA SPF tree is affected as well,
    because that tree cannot be scanned. Any other missing parent is
    skipped and the walk continues through its own parents.

    Signed-off-by: Floatato <2264667392@qq.com>

diff --git a/isisd/isis_lfa.c b/isisd/isis_lfa.c
index ba1b9ad96e..d0d518bba6 100644
--- a/isisd/isis_lfa.c
+++ b/isisd/isis_lfa.c
@@ -943,9 +943,19 @@ static bool vertex_is_affected(struct isis_spftree *spftree_root,
 			struct isis_spf_node *adj_node;

 			adj_node = isis_spf_node_find(adj_nodes, pvertex->N.id);
-			assert(adj_node);
+			if (!adj_node || !adj_node->lfa.spftree) {
+				size_t id_len;
+
+				id_len = LSP_PSEUDO_ID(resource->adjacency)
+					 ? ISIS_SYS_ID_LEN + 1
+					 : ISIS_SYS_ID_LEN;
+				if (adj_node ||
+				    !memcmp(pvertex->N.id, resource->adjacency, id_len))
+					return true;
+				goto parents;
+			}
+
 			spftree_parent = adj_node->lfa.spftree;
-			assert(spftree_parent);
 			reverse = true;
 		}