aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/qos
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/qos')
-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
{