Merge pull request #18387 from Manpreet-k0/redo_import_check_crash

bgpd: Fixed crash upon bgp network import-check command
This commit is contained in:
Donatas Abraitis 2025-03-15 18:35:04 +01:00 committed by GitHub
commit f5a74fc91c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7141,7 +7141,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,