diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/qos/qos_mark.c | 2 | ||||
-rw-r--r-- | src/vnet/qos/qos_record.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/qos/qos_mark.c b/src/vnet/qos/qos_mark.c index cec7192b018..5dc87e8ef81 100644 --- a/src/vnet/qos/qos_mark.c +++ b/src/vnet/qos/qos_mark.c @@ -361,7 +361,7 @@ qos_mark_enable (u32 sw_if_index, int qos_mark_disable (u32 sw_if_index, qos_source_t output_source) { - if (vec_len (qos_mark_configs[output_source]) < sw_if_index) + if (vec_len (qos_mark_configs[output_source]) <= sw_if_index) return VNET_API_ERROR_NO_MATCHING_INTERFACE; if (INDEX_INVALID == qos_mark_configs[output_source][sw_if_index]) return VNET_API_ERROR_VALUE_EXIST; diff --git a/src/vnet/qos/qos_record.c b/src/vnet/qos/qos_record.c index c69b4f1f9d0..7181e3bf599 100644 --- a/src/vnet/qos/qos_record.c +++ b/src/vnet/qos/qos_record.c @@ -68,7 +68,7 @@ qos_record_enable (u32 sw_if_index, qos_source_t input_source) int qos_record_disable (u32 sw_if_index, qos_source_t input_source) { - if (vec_len (qos_record_configs[input_source]) < sw_if_index) + if (vec_len (qos_record_configs[input_source]) <= sw_if_index) return VNET_API_ERROR_NO_MATCHING_INTERFACE; if (0 == qos_record_configs[input_source][sw_if_index]) |