mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 08:56:13 +00:00
pbrd: address 230815 coverity: pbr_vty.c pbrms
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
This commit is contained in:
parent
2e6c879e99
commit
eb3929b4fa
@ -790,6 +790,9 @@ DEFPY (pbr_map_action_src_port,
|
||||
/* clang-format on */
|
||||
struct pbr_map_sequence *pbrms = VTY_GET_CONTEXT(pbr_map_sequence);
|
||||
|
||||
if (!pbrms)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
|
||||
if (no) {
|
||||
if (!CHECK_FLAG(pbrms->action_bm, PBR_ACTION_SRC_PORT))
|
||||
return CMD_SUCCESS;
|
||||
@ -821,6 +824,9 @@ DEFPY (pbr_map_action_dst_port,
|
||||
/* clang-format on */
|
||||
struct pbr_map_sequence *pbrms = VTY_GET_CONTEXT(pbr_map_sequence);
|
||||
|
||||
if (!pbrms)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
|
||||
if (no) {
|
||||
if (!CHECK_FLAG(pbrms->action_bm, PBR_ACTION_DST_PORT))
|
||||
return CMD_SUCCESS;
|
||||
@ -851,6 +857,9 @@ DEFPY (pbr_map_action_dscp,
|
||||
/* clang-format on */
|
||||
struct pbr_map_sequence *pbrms = VTY_GET_CONTEXT(pbr_map_sequence);
|
||||
|
||||
if (!pbrms)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
|
||||
if (no) {
|
||||
if (!CHECK_FLAG(pbrms->action_bm, PBR_ACTION_DSCP))
|
||||
return CMD_SUCCESS;
|
||||
@ -898,6 +907,9 @@ DEFPY (pbr_map_action_ecn,
|
||||
/* clang-format on */
|
||||
struct pbr_map_sequence *pbrms = VTY_GET_CONTEXT(pbr_map_sequence);
|
||||
|
||||
if (!pbrms)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
|
||||
if (no) {
|
||||
if (!CHECK_FLAG(pbrms->action_bm, PBR_ACTION_ECN))
|
||||
return CMD_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user