Skip to content

Commit

Permalink
pbrd: address 230815 coverity: pbr_vty.c vrf_name
Browse files Browse the repository at this point in the history
Signed-off-by: G. Paul Ziemba <[email protected]>
  • Loading branch information
paulzlabn committed Aug 18, 2023
1 parent eb3929b commit 5cde1e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pbrd/pbr_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,7 @@ DEFPY(pbr_map_vrf, pbr_map_vrf_cmd,
* If an equivalent set vrf * exists, just return success.
*/
if ((pbrms->forwarding_type == PBR_FT_SETVRF) &&
vrf_name &&
strncmp(pbrms->vrf_name, vrf_name, sizeof(pbrms->vrf_name)) == 0)
return CMD_SUCCESS;
else if (!vrf_name && (pbrms->forwarding_type == PBR_FT_VRF_UNCHANGED))
Expand Down

0 comments on commit 5cde1e8

Please sign in to comment.