From 9a1f49ef30c6c07ce1254fa57a3d024f9b05f523 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 19 Mar 2018 02:39:45 -0700 Subject: QoS code coverity found errors Change-Id: I6b125b79bdc560bfb81f307367c844b6a5af6368 Signed-off-by: Neale Ranns --- src/vnet/qos/qos_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/qos/qos_api.c') 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 { -- cgit 1.2.3-korg