summaryrefslogtreecommitdiff
path: root/ospfd/ospf_sr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_sr.c')
-rw-r--r--ospfd/ospf_sr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c
index 97dc578679..89db97922f 100644
--- a/ospfd/ospf_sr.c
+++ b/ospfd/ospf_sr.c
@@ -1334,6 +1334,12 @@ static void update_out_nhlfe(struct hash_bucket *bucket, void *args)
continue;
for (ALL_LIST_ELEMENTS_RO(srp->route->paths, pnode, path)) {
+ /* Compute NHFLE if path has not been initialized */
+ if (!path->srni.nexthop) {
+ compute_prefix_nhlfe(srp);
+ continue;
+ }
+
/* Skip path that has not next SR-Node as nexthop */
if (path->srni.nexthop != srnext)
continue;