Merge pull request #14941 from FRRouting/mergify/bp/stable/9.1/pr-14940

bgpd: check bgp evpn instance presence in soo (backport #14940)
This commit is contained in:
Donatas Abraitis 2023-12-05 16:54:38 +02:00 committed by GitHub
commit a8defd3cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3628,7 +3628,7 @@ static bool bgp_evpn_route_matches_macvrf_soo(struct bgp_path_info *pi,
struct ecommunity *macvrf_soo;
bool ret = false;
if (!bgp_evpn->evpn_info)
if (!bgp_evpn || !bgp_evpn->evpn_info)
return false;
/* We only stamp the mac-vrf soo on routes from our local L2VNI.