Skip to content

Commit

Permalink
Merge pull request #14207 from routingrocks/cover_fixes
Browse files Browse the repository at this point in the history
bgpd: fix coverity issue in bgpd
  • Loading branch information
ton31337 authored Aug 16, 2023
2 parents 7cfdbe9 + d33bd63 commit 515585a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 515585a

Please sign in to comment.