summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-03-17 08:15:36 -0400
committerGitHub <noreply@github.com>2025-03-17 08:15:36 -0400
commit72ce90a35a53da549e8705e0f0c1f5151d76dd89 (patch)
tree16a3fc80640fbb679472d8b267e657a342b87eed
parent68eaba52efdb8259259a863c050ae0065118036a (diff)
parent9c73aab85482260fac9b90d9359ce07d919473e1 (diff)
Merge pull request #18403 from FRRouting/mergify/bp/stable/10.1/pr-18387
bgpd: Fixed crash upon bgp network import-check command (backport #18387)
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 5f9ae27085..55c22ed052 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -6836,7 +6836,7 @@ void bgp_static_update(struct bgp *bgp, const struct prefix *p,
&pi->extra->labels->label[0]);
}
#endif
- if (pi->extra && pi->extra->vrfleak->bgp_orig)
+ if (pi->extra && pi->extra->vrfleak && pi->extra->vrfleak->bgp_orig)
bgp_nexthop = pi->extra->vrfleak->bgp_orig;
bgp_nexthop_reachability_check(afi, safi, pi, p, dest,