From: Ondrej Zajicek Date: Mon, 4 May 2026 23:15:32 +0000 (+0200) Subject: OSPF: Fix infinite loop in OSPF Graceful Restart X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=461f177b1cf1600b4a69d9ca4ba1bddfa22b0527;p=thirdparty%2Fbird.git OSPF: Fix infinite loop in OSPF Graceful Restart The loop tests 'j' but increments 'i', so 'j' never changes and the loop never terminates. --- diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index d7753ce0a..99b45c300 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -2226,7 +2226,7 @@ ospf_update_gr_recovery(struct ospf_proto *p) /* Find all neighbors from the network-LSA */ struct ospf_lsa_net *net_body = net->lsa_body; uint cnt = lsa_net_count(&net->lsa); - for (j = 0; j < cnt; i++) + for (j = 0; j < cnt; j++) { n = find_neigh(ifa, net_body->routers[j]); if (!n || (n->state != NEIGHBOR_FULL))