mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 07:30:53 +00:00
Merge pull request #14207 from routingrocks/cover_fixes
bgpd: fix coverity issue in bgpd
This commit is contained in:
commit
515585ae9f
@ -6610,6 +6610,7 @@ int bgp_static_set(struct vty *vty, bool negate, const char *ip_str,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (safi == SAFI_MPLS_VPN || safi == SAFI_EVPN) {
|
if (safi == SAFI_MPLS_VPN || safi == SAFI_EVPN) {
|
||||||
|
memset(&prd, 0, sizeof(prd));
|
||||||
ret = str2prefix_rd(rd_str, &prd);
|
ret = str2prefix_rd(rd_str, &prd);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
vty_out(vty, "%% Malformed rd\n");
|
vty_out(vty, "%% Malformed rd\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user