mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-30 06:58:13 +00:00
bgpd: fix dereference of null pointer in 'bgp_evpn_es_evi_show_entry'
The bgp_evpn_es_evi_show_entry() function tries to access the vni attribute, while the vpn structure may be null. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
8650fef03e
commit
f7b60a3a1f
@ -3966,7 +3966,8 @@ static void bgp_evpn_es_evi_show_entry(struct vty *vty,
|
|||||||
json_object *json_types;
|
json_object *json_types;
|
||||||
|
|
||||||
json_object_string_add(json, "esi", es_evi->es->esi_str);
|
json_object_string_add(json, "esi", es_evi->es->esi_str);
|
||||||
json_object_int_add(json, "vni", es_evi->vpn->vni);
|
if (es_evi->vpn)
|
||||||
|
json_object_int_add(json, "vni", es_evi->vpn->vni);
|
||||||
|
|
||||||
if (es_evi->flags & (BGP_EVPNES_EVI_LOCAL |
|
if (es_evi->flags & (BGP_EVPNES_EVI_LOCAL |
|
||||||
BGP_EVPNES_EVI_REMOTE)) {
|
BGP_EVPNES_EVI_REMOTE)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user