summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Ruddy <pat@voltanet.io>2021-02-14 12:08:08 +0000
committerPat Ruddy <pat@voltanet.io>2021-02-17 13:33:59 +0000
commit23b88a967da32cc719554e50187127a9cc6d5b42 (patch)
tree1ad02673ecc53c974fd8216132c00cd8c24e0675
parentf01828a1d77ef8d4edd93b4c5f793c5a8f9a6e85 (diff)
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>
-rw-r--r--bgpd/bgp_mplsvpn_snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_mplsvpn_snmp.c b/bgpd/bgp_mplsvpn_snmp.c
index e8084924f5..7047607e5d 100644
--- a/bgpd/bgp_mplsvpn_snmp.c
+++ b/bgpd/bgp_mplsvpn_snmp.c
@@ -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,