mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
bgpd: fix uninitialized value in show cmd
When unsupported EVPN route types are are received / displayed with a show command we print an uninitialized stack buffer. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
64ed2a6108
commit
f9aa3e5549
@ -2287,6 +2287,8 @@ char *bgp_evpn_route2str(struct prefix_evpn *p, char *buf, int len)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* For EVPN route types not supported yet. */
|
/* For EVPN route types not supported yet. */
|
||||||
|
snprintf(buf, len, "(unsupported route type %d)",
|
||||||
|
p->prefix.route_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (buf);
|
return (buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user