mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-02 23:52:33 +00:00
bgpd: mplsvpn snmp: NULL check correct pointer
Check the dereferenced pointer to the bgp instance and not the pointer to it. Signed-off-by: Pat Ruddy <pat@voltanet.io>
This commit is contained in:
parent
f01828a1d7
commit
23b88a967d
@ -1461,7 +1461,7 @@ static struct bgp_path_info *bgpL3vpnRte_lookup(struct variable *v, oid name[],
|
||||
/* otherwise lookup the one we have */
|
||||
*l3vpn_bgp = bgp_lookup_by_name(vrf_name);
|
||||
|
||||
if (l3vpn_bgp == NULL)
|
||||
if (*l3vpn_bgp == NULL)
|
||||
return NULL;
|
||||
|
||||
pi = bgp_lookup_route_next(l3vpn_bgp, dest, &prefix, policy,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user