mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-27 22:30:56 +00:00
Merge pull request #13027 from donaldsharp/evpn_crashit_like_you_wantit
bgpd: Prevent Null pointer deref when outputting data
This commit is contained in:
commit
4f039e94aa
@ -2564,7 +2564,8 @@ static void bgp_evpn_es_show_entry(struct vty *vty,
|
||||
bgp_evpn_es_vteps_str(vtep_str, es, sizeof(vtep_str));
|
||||
|
||||
vty_out(vty, "%-30s %-5s %-21pRDP %-8d %s\n", es->esi_str,
|
||||
type_str, &es->es_base_frag->prd,
|
||||
type_str,
|
||||
es->es_base_frag ? &es->es_base_frag->prd : NULL,
|
||||
listcount(es->es_evi_list), vtep_str);
|
||||
}
|
||||
}
|
||||
@ -2640,7 +2641,8 @@ static void bgp_evpn_es_show_entry_detail(struct vty *vty,
|
||||
|
||||
vty_out(vty, "ESI: %s\n", es->esi_str);
|
||||
vty_out(vty, " Type: %s\n", type_str);
|
||||
vty_out(vty, " RD: %pRDP\n", &es->es_base_frag->prd);
|
||||
vty_out(vty, " RD: %pRDP\n",
|
||||
es->es_base_frag ? &es->es_base_frag->prd : NULL);
|
||||
vty_out(vty, " Originator-IP: %pI4\n", &es->originator_ip);
|
||||
if (es->flags & BGP_EVPNES_LOCAL)
|
||||
vty_out(vty, " Local ES DF preference: %u\n",
|
||||
|
Loading…
Reference in New Issue
Block a user