Merge pull request #14207 from routingrocks/cover_fixes

bgpd: fix coverity issue in bgpd
This commit is contained in:
Donatas Abraitis 2023-08-16 09:00:06 +03:00 committed by GitHub
commit 515585ae9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {
memset(&prd, 0, sizeof(prd));
ret = str2prefix_rd(rd_str, &prd);
if (!ret) {
vty_out(vty, "%% Malformed rd\n");