diff options
| author | G. Paul Ziemba <paulz@labn.net> | 2023-07-21 05:41:07 -0700 | 
|---|---|---|
| committer | G. Paul Ziemba <paulz@labn.net> | 2023-07-21 09:15:40 -0700 | 
| commit | 9835196ec9c6ac2f058b862c1a9f401723ffd583 (patch) | |
| tree | 88498f471f767bbf144298cd03daae1220d9f0d5 | |
| parent | 3a58764e3a7a5912187d5d062e06044bc1cd7044 (diff) | |
pbrd: fix coverity issue
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
| -rw-r--r-- | pbrd/pbr_vty.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index bc83c2d61c..8e9673482e 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -73,7 +73,7 @@ DEFPY(pbr_map_match_vlan_id, pbr_map_match_vlan_id_cmd,  /* clang-format off */  DEFPY(pbr_map_match_vlan_tag, pbr_map_match_vlan_tag_cmd, -      "[no] match vlan [<tagged|untagged|untagged-or-zero>$tag_type]", +      "[no] match vlan ![<tagged|untagged|untagged-or-zero>$tag_type]",        NO_STR        "Match the rest of the command\n"        "Match based on VLAN tagging\n" @@ -88,6 +88,7 @@ DEFPY(pbr_map_match_vlan_tag, pbr_map_match_vlan_tag_cmd,  		return CMD_WARNING;  	if (!no) { +		assert(tag_type);  		if (strmatch(tag_type, "tagged")) {  			pbr_set_match_clause_for_vlan(pbrms, 0,  						      PBR_VLAN_FLAGS_TAGGED);  | 
