aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/qos/qos_api.c
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-03-19 02:39:45 -0700
committerChris Luke <chris_luke@comcast.com>2018-03-19 17:10:06 +0000
commit9a1f49ef30c6c07ce1254fa57a3d024f9b05f523 (patch)
tree89984a094d8060074c1b8f5244754241ad4f5d4b /src/vnet/qos/qos_api.c
parent26600e6e33ffb516ef6fefcbf0b5e554e38a3929 (diff)
QoS code coverity found errors
Change-Id: I6b125b79bdc560bfb81f307367c844b6a5af6368 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/qos/qos_api.c')
-rw-r--r--src/vnet/qos/qos_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/qos/qos_api.c b/src/vnet/qos/qos_api.c
index cdb9e46ea36..e2393137d15 100644
--- a/src/vnet/qos/qos_api.c
+++ b/src/vnet/qos/qos_api.c
@@ -55,7 +55,7 @@ vl_api_qos_record_enable_disable_t_handler (vl_api_qos_record_enable_disable_t
vl_api_qos_record_enable_disable_reply_t *rmp;
int rv = 0;
- if (mp->input_source > QOS_N_SOURCES)
+ if (mp->input_source >= QOS_N_SOURCES)
rv = VNET_API_ERROR_INVALID_VALUE;
else
{
@@ -101,7 +101,7 @@ void
vl_api_qos_mark_enable_disable_reply_t *rmp;
int rv = 0;
- if (mp->output_source > QOS_N_SOURCES)
+ if (mp->output_source >= QOS_N_SOURCES)
rv = VNET_API_ERROR_INVALID_VALUE;
else
{