Skip to content

Commit

Permalink
bgpd: Fix another crash in orf
Browse files Browse the repository at this point in the history
I was pointed at yet another crash in the orf code.  I think it
stems from basicaly the same problem as the last one.  Let's just
make sure that the orf_plist is handled appropriately.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
  • Loading branch information
donaldsharp committed Feb 19, 2025
1 parent 5082cab commit ffff1a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bgpd/bgp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2842,6 +2842,14 @@ static int bgp_route_refresh_receive(struct peer_connection *connection,
prefix_bgp_orf_remove_all(afi, name);
peer->orf_plist[afi][safi] = prefix_bgp_orf_lookup(afi,
name);

paf = peer_af_find(peer, afi, safi);
if (paf && paf->subgroup) {
updgrp = PAF_UPDGRP(paf);
updgrp_peer = UPDGRP_PEER(updgrp);
updgrp_peer->orf_plist[afi][safi] =
peer->orf_plist[afi][safi];
}
break;
}

Expand Down

0 comments on commit ffff1a1

Please sign in to comment.