summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-03-17 08:15:16 -0400
committerGitHub <noreply@github.com>2025-03-17 08:15:16 -0400
commit79e8d2e836558114d0e035ebc22dcce705762d92 (patch)
tree629ce1403ccf75e895a1edcbc01d1a6185b69f07
parent03d3f4a1c889af5cbb672338393b65f333391d37 (diff)
parent95e036c177368a2f1eb6313d9dec6d2c6b69e360 (diff)
Merge pull request #18405 from FRRouting/mergify/bp/stable/10.0/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 ed38f61d9a..8e7087bb22 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -6520,7 +6520,7 @@ void bgp_static_update(struct bgp *bgp, const struct prefix *p,
&pi->extra->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,